The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Restore search check
Terry Suttondede2e83a766
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex d569f4a6bc6..fc0f31dfb6b 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -257,7 +257,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {</CommandGroup><ThemeOptions isSubItem />- {site === 'studio' && <SearchableStudioItems />}+ {site === 'studio' && search && <SearchableStudioItems />}</>)}{currentPage === COMMAND_ROUTES.AI && <AiCommand />}diff --git a/packages/ui/src/components/Command/SearchOnlyItem.tsx b/packages/ui/src/components/Command/SearchOnlyItem.tsxindex 82cd3d16314..a9ec3e50068 100644--- a/packages/ui/src/components/Command/SearchOnlyItem.tsx+++ b/packages/ui/src/components/Command/SearchOnlyItem.tsx@@ -1,7 +1,9 @@import { useCommandState } from 'cmdk-supabase'import { CommandItem } from './Command.utils'+import React from 'react'export default function SearchOnlyItem({ children, isSubItem, ...props }: any) {+ console.log(children)const search = useCommandState((state) => state.search)// if search is empty & items is marked as a subItem, don't show it// ie: only show these items in search results, not top level