diff --git a/apps/studio/state/table-editor-table.tsx b/apps/studio/state/table-editor-table.tsx index 6824c3da674a9..16634adcd7c43 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, }),