Skip to content

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

fix: Set the description field in column to empty string when cleared (#34695)

Ivan Vasilovae0fbd4ee212
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
index 8c71db7e8f3..f50842258c6 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
@@ -125,7 +125,8 @@ export const generateUpdateColumnPayload = (
// Only append the properties which are getting updated
const name = field.name.trim()
const type = field.isArray ? `${field.format}[]` : field.format
- const comment = ((field.comment?.length ?? '') === 0 ? null : field.comment)?.trim()
+ const comment = ((field.comment?.length ?? '') === 0 ? '' : field.comment)?.trim()
+
const check = field.check?.trim()
const payload: Partial<UpdateColumnPayload> = {}