From e194c045c6a5fe42e6d0f1f338c5d2b57dcd0cad Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Thu, 14 Aug 2025 06:01:11 +0200 Subject: [PATCH] Fix: Use the `state.editable` instead of the semi-global `editable` variable in Table state (#37918) Use the state.editable instead of the semi-global editable variable. --- apps/studio/state/table-editor-table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }),