Skip to content

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

fix(table editor): request fired per column when updating table (#40160)

Charisa0afa9eef288
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 896f97e8ed5..b19bada0766 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts
@@ -70,7 +70,7 @@ export const generateColumnFieldFromPostgresColumn = (
table: column.table,
schema: column.schema,
name: column.name,
- comment: column?.comment ?? '',
+ comment: column?.comment,
format: isArray ? column.format.slice(1) : column.format,
defaultValue: column?.default_value as string | null,
check: column.check,
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.types.ts b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.types.ts
index 508e0be22f1..a497e2c3c75 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.types.ts
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.types.ts
@@ -46,7 +46,7 @@ export interface ColumnField {
table: string
schema: string
check: string | null
- comment?: string
+ comment?: string | null
format: string
defaultValue: string | null
foreignKey?: ExtendedPostgresRelationship