mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
hotfix: docs layout project ref
This commit is contained in:
1 parent
992c9e5246
commit
e63273ef47
1 file changed
+3
-3
@@ -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.openApi
|
||||
const 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 (
|
||||
|
||||
Reference in new issue
Block a user