From be5976fcd1e7decae5006912465aa032619b2efb Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Fri, 28 Mar 2025 18:51:03 +0800 Subject: [PATCH] Small fixes --- apps/studio/components/layouts/AppLayout/AssistantButton.tsx | 3 +++ .../components/layouts/AppLayout/InlineEditorButton.tsx | 5 ++++- .../ui/AIAssistantPanel/AIAssistantChatSelector.tsx | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/studio/components/layouts/AppLayout/AssistantButton.tsx b/apps/studio/components/layouts/AppLayout/AssistantButton.tsx index 8540c6087ff..0fbdbd187dd 100644 --- a/apps/studio/components/layouts/AppLayout/AssistantButton.tsx +++ b/apps/studio/components/layouts/AppLayout/AssistantButton.tsx @@ -1,8 +1,10 @@ import { useAiAssistantStateSnapshot } from 'state/ai-assistant-state' +import { useAppStateSnapshot } from 'state/app-state' import { AiIconAnimation, Button } from 'ui' const AssistantButton = () => { const snap = useAiAssistantStateSnapshot() + const { setEditorPanel } = useAppStateSnapshot() return (