Skip to content

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

Remove client side validation for non null columns in row editor

Joshen Lim2a7b48bffff6
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
index 2d65caf9c96..e6863a4269e 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/RowEditor/RowEditor.utils.ts
@@ -75,14 +75,6 @@ export const validateFields = (fields: RowField[]) => {
}
}
if (field.isIdentity || field.defaultValue) return
- if (
- !field.isNullable &&
- typeof field.value === 'string' &&
- field.value.length === 0 &&
- field.defaultValue === null
- ) {
- errors[field.name] = `Please assign a value for this field`
- }
})
return errors
}