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 showing empty cells after renaming column

Alaister Young60c7d7a42e5e
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
index 9b002df95d9..99ce84b03f4 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/SidePanelEditor.tsx
@@ -263,8 +263,13 @@ const SidePanelEditor = ({
if (response?.error) {
ui.setNotification({ category: 'error', message: response.error.message })
} else {
- await meta.tables.loadById(selectedTable!.id)
queryClient.invalidateQueries(sqlKeys.query(project?.ref, ['foreign-key-constraints']))
+ await Promise.all([
+ meta.tables.loadById(selectedTable!.id),
+ queryClient.invalidateQueries(
+ sqlKeys.query(project?.ref, [selectedTable!.schema, selectedTable!.name])
+ ),
+ ])
onColumnSaved(configuration.isEncrypted)
setIsEdited(false)
closePanel()