Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(studio): boolean editor in table editor (#40947)

Alaister Young4804642b1857
diff --git a/apps/studio/components/grid/components/editor/BooleanEditor.tsx b/apps/studio/components/grid/components/editor/BooleanEditor.tsx
index dd5dd2227f2..8d8387ba855 100644
--- a/apps/studio/components/grid/components/editor/BooleanEditor.tsx
+++ b/apps/studio/components/grid/components/editor/BooleanEditor.tsx
@@ -32,7 +32,7 @@ export const BooleanEditor = <TRow, TSummaryRow = unknown>({
size="small"
onBlur={onBlur}
onChange={onChange}
- defaultValue={!!value ? value.toString() : 'null'}
+ defaultValue={value === null || value === undefined ? 'null' : value.toString()}
style={{ width: `${column.width}px` }}
>
<Select.Option value="true">TRUE</Select.Option>