The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: table editor not refresh when change schema (#20466)
Austin Tran8e5b289fcf00
diff --git a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsxindex 7dc7d25979b..ba9dd5dfc7d 100644--- a/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx+++ b/apps/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx@@ -34,8 +34,10 @@ import {} from 'ui'import { useProjectContext } from '../ProjectLayout/ProjectContext'import EntityListItem from './EntityListItem'+import { useRouter } from 'next/router'const TableEditorMenu = () => {+ const router = useRouter()const { id } = useParams()const snap = useTableEditorStateSnapshot()@@ -108,6 +110,7 @@ const TableEditorMenu = () => {onSelectSchema={(name: string) => {setSearchText('')snap.setSelectedSchemaName(name)+ router.push(`/project/${project?.ref}/editor`)}}onSelectCreateSchema={() => snap.onAddSchema()}/>