Skip to content

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

Small fix

Joshen Lim1919cf8b224b
diff --git a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
index b58fbd62956..0c0728e6e4e 100644
--- a/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
+++ b/studio/components/layouts/AppLayout/OrganizationDropdown.tsx
@@ -85,6 +85,7 @@ const OrganizationDropdown = () => {
setOpen(false)
router.push(href)
}}
+ onClick={() => setOpen(false)}
>
<a>
{org.name}
@@ -98,12 +99,13 @@ const OrganizationDropdown = () => {
<CommandGroup_Shadcn_ className="border-t">
<Link passHref href={orgCreationV2 ? `/new-with-subscription` : `/new`}>
<CommandItem_Shadcn_
+ asChild
className="cursor-pointer flex items-center space-x-2 w-full"
onSelect={(e) => {
setOpen(false)
router.push(orgCreationV2 ? `/new-with-subscription` : `/new`)
}}
- asChild
+ onClick={() => setOpen(false)}
>
<a>
<IconPlus size={14} strokeWidth={1.5} />
diff --git a/studio/components/layouts/AppLayout/ProjectDropdown.tsx b/studio/components/layouts/AppLayout/ProjectDropdown.tsx
index 61fbfea55b9..be09dcbb804 100644
--- a/studio/components/layouts/AppLayout/ProjectDropdown.tsx
+++ b/studio/components/layouts/AppLayout/ProjectDropdown.tsx
@@ -174,6 +174,7 @@ const ProjectDropdown = () => {
setOpen(false)
router.push(`/new/${selectedOrganization?.slug}`)
}}
+ onClick={() => setOpen(false)}
>
<a>
<IconPlus size={14} strokeWidth={1.5} />