Skip to content

Commit

Permalink
fix(fe): visible cannot be null again (#1969)
Browse files Browse the repository at this point in the history
* fix(fe): visible can be null

* fix(fe): fix isvisible to be null if undefined

* fix(fe): fix again
  • Loading branch information
jimin9038 authored Aug 18, 2024
1 parent 71ebc00 commit 165787e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/app/admin/problem/_components/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function VisibleCell({ row }: { row: Row<DataTableProblem> }) {
<Switch
id="hidden-mode"
onClick={(e) => e.stopPropagation()}
disabled={!row.original.isVisible}
disabled={row.original.isVisible === null}
checked={row.original.isVisible === true}
onCheckedChange={() => {
row.original.isVisible = !row.original.isVisible
Expand Down

0 comments on commit 165787e

Please sign in to comment.