Skip to content

Commit 4804642

Browse files
authored
fix(studio): boolean editor in table editor (supabase#40947)
1 parent 065e35f commit 4804642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/studio/components/grid/components/editor/BooleanEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const BooleanEditor = <TRow, TSummaryRow = unknown>({
3232
size="small"
3333
onBlur={onBlur}
3434
onChange={onChange}
35-
defaultValue={!!value ? value.toString() : 'null'}
35+
defaultValue={value === null || value === undefined ? 'null' : value.toString()}
3636
style={{ width: `${column.width}px` }}
3737
>
3838
<Select.Option value="true">TRUE</Select.Option>

0 commit comments

Comments
 (0)