Skip to content

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

Add debug note

Terry Suttonc3f88e085ca9
diff --git a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
index 366bff4e7ed..41bf841aa1d 100644
--- a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
+++ b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
@@ -113,6 +113,9 @@ const ContentWrapper: FC<ContentWrapperProps> = observer(({ isLoading, children
const isProjectOffline = ui.selectedProject?.postgrestStatus === 'OFFLINE'
+ // works if just navigating from homepage, undefined if you go to /project/ref/ and refresh
+ console.log(ui.selectedProject)
+
return (
<>
{isLoading || ui.selectedProject === undefined ? (