From 165787e4c22d246bc32c0fd6e5af14711aa97ba7 Mon Sep 17 00:00:00 2001 From: jimin9038 Date: Mon, 19 Aug 2024 02:42:21 +0900 Subject: [PATCH] fix(fe): visible cannot be null again (#1969) * fix(fe): visible can be null * fix(fe): fix isvisible to be null if undefined * fix(fe): fix again --- apps/frontend/app/admin/problem/_components/Columns.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/frontend/app/admin/problem/_components/Columns.tsx b/apps/frontend/app/admin/problem/_components/Columns.tsx index 44336c4619..2bdac98894 100644 --- a/apps/frontend/app/admin/problem/_components/Columns.tsx +++ b/apps/frontend/app/admin/problem/_components/Columns.tsx @@ -33,7 +33,7 @@ function VisibleCell({ row }: { row: Row }) { e.stopPropagation()} - disabled={!row.original.isVisible} + disabled={row.original.isVisible === null} checked={row.original.isVisible === true} onCheckedChange={() => { row.original.isVisible = !row.original.isVisible