Skip to content

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

Use router push when changing orgs on new project creation page

Joshen Lim84854b155502
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index 195c6b7c606..44ba3a53ba3 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -251,8 +251,7 @@ export const Wizard = observer(() => {
label="Organization"
layout="horizontal"
value={currentOrg?.slug}
- // [Joshen] Should we use router.push?
- onChange={(slug) => (window.location.href = `/new/${slug}`)}
+ onChange={(slug) => router.push(`/new/${slug}`)}
>
{organizations.map((x: any) => (
<Listbox.Option