Skip to content

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

Studio only items

Terry Sutton393de73d6f4b
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index 0000e67050f..4c1a0e99d30 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -236,15 +236,16 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
))}
</CommandGroup>
- <CommandGroup heading="General">
- {sharedItems.docsGeneral.map((item) => (
- <CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
- {item?.icon && iconPicker[item.icon]}
- <CommandLabel>{item.label}</CommandLabel>
- </CommandItem>
- ))}
- </CommandGroup>
-
+ {site === 'docs' && (
+ <CommandGroup heading="General">
+ {sharedItems.docsGeneral.map((item) => (
+ <CommandItem key={item.url} type="link" onSelect={() => router.push(item.url)}>
+ {item?.icon && iconPicker[item.icon]}
+ <CommandLabel>{item.label}</CommandLabel>
+ </CommandItem>
+ ))}
+ </CommandGroup>
+ )}
<CommandGroup heading="Settings">
<CommandItem type="link" onSelect={() => setPages([...pages, 'Theme'])}>
<IconMonitor className="mr-2" />
@@ -252,7 +253,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {
</CommandItem>
</CommandGroup>
<ThemeOptions isSubItem />
- {site === 'studio' && <SearchableStudioItems />}
+ {site === 'studio' && search && <SearchableStudioItems />}
</>
)}
{currentPage === COMMAND_ROUTES.AI && <AiCommand />}