fix: Duplicate template options (#51)

* fix: Duplicate template options

* fix: form option i18n text
This commit is contained in:
仓鼠
2024-12-14 10:16:33 +08:00
committed by GitHub
parent 540bb0185d
commit e0305723c3
11 changed files with 46 additions and 128 deletions
+3 -1
View File
@@ -69,7 +69,9 @@ export default function WAFPage() {
header: t("LastBlockReason"),
accessorKey: "lastBlockReason",
accessorFn: (row) => row.last_block_reason,
cell: ({ row }) => <span>{wafBlockReasons[row.original.last_block_reason] || ""}</span>,
cell: ({ row }) => (
<span>{wafBlockReasons(t)[row.original.last_block_reason] || ""}</span>
),
},
{
header: t("LastBlockTime"),