Skip to content

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

Fix cmd i not closing AI assistant (#36164)

Joshen Lim2df44bc0731e
diff --git a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
index da348ff170e..7f1b25d8ed5 100644
--- a/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
+++ b/apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx
@@ -125,7 +125,7 @@ const ProjectLayout = forwardRef<HTMLDivElement, PropsWithChildren<ProjectLayout
useEffect(() => {
const handler = (e: KeyboardEvent) => {
if (e.metaKey && e.key === 'i' && !e.altKey && !e.shiftKey) {
- aiSnap.openAssistant()
+ aiSnap.toggleAssistant()
e.preventDefault()
e.stopPropagation()
}