mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
Merge pull request #13723 from supabase/chore/fix-generate-sql-dont-send-prompt-if-responding
Dont send prompt if responding
This commit is contained in:
1 file changed
+9
-1
@@ -204,7 +204,15 @@ const GenerateSQL = () => {
|
||||
handleSubmit(query)
|
||||
}
|
||||
}}
|
||||
onKeyDown={(e) => e.keyCode === 13 && handleSubmit(query)}
|
||||
onKeyDown={(e) => {
|
||||
switch (e.key) {
|
||||
case 'Enter':
|
||||
if (!search || isLoading || isResponding) return
|
||||
return handleSubmit(query)
|
||||
default:
|
||||
return
|
||||
}
|
||||
}}
|
||||
forceMount
|
||||
key={query.replace(/\s+/g, '_')}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user