The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix double quote issue in docs search
Neeraj Walia4f9874b430e3
diff --git a/packages/ui/src/components/Command/CommandMenu.tsx b/packages/ui/src/components/Command/CommandMenu.tsxindex 360ef5bc421..0d41f360fac 100644--- a/packages/ui/src/components/Command/CommandMenu.tsx+++ b/packages/ui/src/components/Command/CommandMenu.tsx@@ -67,6 +67,12 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {useCommandMenu()const showCommandInput = !currentPage || !CHAT_ROUTES.includes(currentPage)+ // This function has been added to prevent the use of double quotes in the search docs input due to an issue with the cmdk-supabase module. This function can be removed when we transition to using cmdk.+ const handleInputChange = (value: string) => {+ const newValue = value.replace(/"/g, '') // Remove double quotes+ setSearch(newValue)+ }+return (<><CommandDialog@@ -88,7 +94,7 @@ const CommandMenu = ({ projectRef }: CommandMenuProps) => {ref={commandInputRef}placeholder="Type a command or search..."value={search}- onValueChange={setSearch}+ onValueChange={handleInputChange}/>)}<CommandList className={['my-2', showCommandInput && 'max-h-[300px]'].join(' ')}>