The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Syntax altered for clarity
Faizan Rasool56576aa7e222
diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsxindex c95d4633e7f..6e9d0e6acc7 100644--- a/packages/ui/src/components/Command/Command.utils.tsx+++ b/packages/ui/src/components/Command/Command.utils.tsx@@ -358,14 +358,14 @@ export function useHistoryKeys({ enable, messages, setPrompt }: UseHistoryKeysOpcase 'ArrowUp':setMessageSelectionIndex((index) => {const newIndex = Math.max(index - 1, 0)- messages[newIndex] ? setPrompt(messages[newIndex]) : null+ if (messages[newIndex]) setPrompt(messages[newIndex])return newIndex})returncase 'ArrowDown':setMessageSelectionIndex((index) => {const newIndex = Math.min(index + 1, messages.length)- messages[newIndex] ? setPrompt(messages[newIndex]) : null+ if (messages[newIndex]) setPrompt(messages[newIndex])return newIndex})return