Skip to content

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

Fix

Joshen Limfab17d5d27d8
diff --git a/studio/pages/projects.tsx b/studio/pages/projects.tsx
index e36beadb3d8..a004508fd74 100644
--- a/studio/pages/projects.tsx
+++ b/studio/pages/projects.tsx
@@ -32,7 +32,7 @@ const ProjectsPage: NextPageWithLayout = () => {
typeof window !== 'undefined'
? localStorage.getItem(LOCAL_STORAGE_KEYS.RECENTLY_VISITED_ORGANIZATION)
: undefined
- if (localStorageSlug !== undefined) router.push(`/org/${localStorageSlug}`)
+ if (localStorageSlug) router.push(`/org/${localStorageSlug}`)
else router.push(`/org/${organizations[0].slug}`)
}
}, [navLayoutV2, isSuccess, typeof window])