Skip to content

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

refactor(cmdk): remove unused props

Greg Richardson6a1658d1f909
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsx
index dfbfcf3b85c..34084d23021 100644
--- a/packages/ui/src/components/Command/CommandMenu.tsx
+++ b/packages/ui/src/components/Command/CommandMenu.tsx
@@ -250,12 +250,8 @@ const CommandMenu = () => {
<SearchableChildItems isSubItem />
</>
)}
- {currentPage === COMMAND_ROUTES.AI && (
- <AiCommand query={search} setQuery={setSearch} page={currentPage} />
- )}
- {currentPage === COMMAND_ROUTES.DOCS_SEARCH && (
- <DocsSearch query={search} setQuery={setSearch} />
- )}
+ {currentPage === COMMAND_ROUTES.AI && <AiCommand />}
+ {currentPage === COMMAND_ROUTES.DOCS_SEARCH && <DocsSearch />}
{currentPage === COMMAND_ROUTES.THEME && <ThemeOptions />}
</CommandList>
</CommandDialog>