Skip to content

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

fix default value of boolean column not respecting

samueldenzil4acdd8b2dfec
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
index 55a3c587b11..42b55172d31 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/InputField.tsx
@@ -202,7 +202,7 @@ const InputField = ({
...(field.isNullable ? [{ value: 'null', label: 'NULL' }] : []),
]
- const defaultValue = field.value === null ? 'null' : field.value
+ const defaultValue = field.defaultValue === null ? 'null' : field.defaultValue
return (
<Listbox