Skip to content

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

Fix: Use the `state.editable` instead of the semi-global `editable` variable in Table state (#37918)

Ivan Vasilove194c045c6a5
diff --git a/apps/studio/state/table-editor-table.tsx b/apps/studio/state/table-editor-table.tsx
index 6824c3da674..16634adcd7c 100644
--- a/apps/studio/state/table-editor-table.tsx
+++ b/apps/studio/state/table-editor-table.tsx
@@ -61,8 +61,8 @@ export const createTableEditorTableState = ({
const gridColumns = getInitialGridColumns(
getGridColumns(supaTable, {
tableId: table.id,
- editable,
- onAddColumn: editable ? onAddColumn : undefined,
+ editable: state.editable,
+ onAddColumn: state.editable ? onAddColumn : undefined,
onExpandJSONEditor,
onExpandTextEditor,
}),