Skip to content

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

toast column not found errors

Alaister Youngd551d5221269
diff --git a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
index cd40b4d7658..22db3524264 100644
--- a/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/TableGridEditor.tsx
@@ -239,7 +239,10 @@ const TableGridEditor = ({
if (column) {
snap.onEditColumn(column)
} else {
- console.error(`Unable to find column ${name} in ${selectedTable?.name}`)
+ ui.setNotification({
+ category: 'error',
+ message: `Unable to find column ${name} in ${selectedTable?.name}`,
+ })
}
}
@@ -248,7 +251,10 @@ const TableGridEditor = ({
if (column) {
snap.onDeleteColumn(column)
} else {
- console.error(`Unable to find column ${name} in ${selectedTable?.name}`)
+ ui.setNotification({
+ category: 'error',
+ message: `Unable to find column ${name} in ${selectedTable?.name}`,
+ })
}
}