fix: table editor showing empty cells after renaming column

This commit is contained in:
Alaister Young committed 2023-03-28 16:57:04 +11:00
1 parent 099cf91925
commit 60c7d7a42e
1 file changed
+6 -1
@@ -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()