From 2df44bc0731ee333e33fc7a3feda4f2b8b4ca780 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Wed, 4 Jun 2025 18:43:33 +0800 Subject: [PATCH] Fix cmd i not closing AI assistant (#36164) --- apps/studio/components/layouts/ProjectLayout/ProjectLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { const handler = (e: KeyboardEvent) => { if (e.metaKey && e.key === 'i' && !e.altKey && !e.shiftKey) { - aiSnap.openAssistant() + aiSnap.toggleAssistant() e.preventDefault() e.stopPropagation() }