Skip to content

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

Remove unused fn

Terry Suttonae6585d5e1ef
diff --git a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
index 7d89aba5bed..9c42c3e717d 100644
--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx
@@ -81,15 +81,6 @@ const GenerateSQL = () => {
}
}
- const handleKeypress = (e, category) => {
- //it triggers by pressing the enter key
- if (e.keyCode === 13) {
- setSelectedCategory(category)
- // focus on the first item in the list after selecting a category
- const firstItem = document.querySelector('.command-menu-item')
- }
- }
-
return (
<div onClick={(e) => e.stopPropagation()}>
<div