The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
hotfix: docs layout project ref
Alaister Younge63273ef4765
diff --git a/studio/components/layouts/DocsLayout/DocsLayout.tsx b/studio/components/layouts/DocsLayout/DocsLayout.tsxindex d14142740f2..10ddcd7c040 100644--- a/studio/components/layouts/DocsLayout/DocsLayout.tsx+++ b/studio/components/layouts/DocsLayout/DocsLayout.tsx@@ -11,7 +11,7 @@ import { generateDocsMenu } from './DocsLayout.utils'function DocsLayout({ title, children }: { title: string; children: ReactElement }) {const router = useRouter()- const { meta } = useStore()+ const { ui, meta } = useStore()const { data, isLoading, error } = meta.openApiconst selectedProject = useSelectedProject()@@ -26,10 +26,10 @@ function DocsLayout({ title, children }: { title: string; children: ReactElement}useEffect(() => {- if (selectedProject?.ref && !isPaused) {+ if (ui.selectedProjectRef && !isPaused) {meta.openApi.load()}- }, [selectedProject?.ref])+ }, [ui.selectedProjectRef])if (error) {return (