Skip to content

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

fix: sqlEditorStore null when navigating to page

Alaister Young4c2ab7e0f45e
diff --git a/studio/components/layouts/SQLEditorLayout/SQLEditorLayout.tsx b/studio/components/layouts/SQLEditorLayout/SQLEditorLayout.tsx
index c6d6d33d6da..64abfe1c9ce 100644
--- a/studio/components/layouts/SQLEditorLayout/SQLEditorLayout.tsx
+++ b/studio/components/layouts/SQLEditorLayout/SQLEditorLayout.tsx
@@ -40,7 +40,7 @@ const SQLEditorLayout: FC<Props> = ({ title, children }) => {
</ProjectLayout>
) : (
<ProjectLayout
- isLoading={content.isLoading}
+ isLoading={content.isLoading || sqlEditorStore === null}
title={title || 'SQL'}
product="SQL Editor"
productMenu={<SQLEditorMenu />}