Skip to content

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

fix: bugs

phamhieue07032c0858d
diff --git a/studio/components/layouts/WizardLayout.tsx b/studio/components/layouts/WizardLayout.tsx
index 2a526e3a8f4..e6ef990668e 100644
--- a/studio/components/layouts/WizardLayout.tsx
+++ b/studio/components/layouts/WizardLayout.tsx
@@ -1,20 +1,17 @@
import { FC } from 'react'
import Link from 'next/link'
-import BaseLayout from 'components/layouts'
-import { IconChevronRight, Typography } from '@supabase/ui'
+import { IconChevronRight } from '@supabase/ui'
const WizardLayout: FC<any> = ({ organization, project, children }) => {
return (
- <BaseLayout hideHeader hideIconBar>
- <div className="flex flex-col h-full w-full">
- <Header organization={organization} project={project} />
- <div className="overflow-auto">
- <section className="mx-auto max-w-2xl relative my-10 has-slide-in slide-in">
- {children}
- </section>
- </div>
+ <div className="flex flex-col h-full w-full">
+ <Header organization={organization} project={project} />
+ <div className="overflow-auto">
+ <section className="mx-auto max-w-2xl relative my-10 has-slide-in slide-in">
+ {children}
+ </section>
</div>
- </BaseLayout>
+ </div>
)
}
export default WizardLayout
diff --git a/studio/pages/new/[slug].tsx b/studio/pages/new/[slug].tsx
index b601cf0432d..97f2d8fdec0 100644
--- a/studio/pages/new/[slug].tsx
+++ b/studio/pages/new/[slug].tsx
@@ -226,23 +226,25 @@ export const Wizard = observer(() => {
</Panel.Content>
<Panel.Content className="Form section-block--body has-inputs-centered border-b border-t border-panel-border-interior-light dark:border-panel-border-interior-dark space-y-4">
- <Listbox
- label="Organization"
- layout="horizontal"
- value={currentOrg?.slug}
- onChange={(slug) => router.push(`/new/${slug}`)}
- >
- {organizations.map((x: any) => (
- <Listbox.Option
- key={x.id}
- label={x.name}
- value={x.slug}
- addOnBefore={() => <IconUsers />}
- >
- {x.name}
- </Listbox.Option>
- ))}
- </Listbox>
+ {organizations.length > 0 && (
+ <Listbox
+ label="Organization"
+ layout="horizontal"
+ value={currentOrg?.slug}
+ onChange={(slug) => router.push(`/new/${slug}`)}
+ >
+ {organizations.map((x: any) => (
+ <Listbox.Option
+ key={x.id}
+ label={x.name}
+ value={x.slug}
+ addOnBefore={() => <IconUsers />}
+ >
+ {x.name}
+ </Listbox.Option>
+ ))}
+ </Listbox>
+ )}
{!isOrganizationOwner && <NotOrganizationOwnerWarning />}
</Panel.Content>