diff --git a/frontend/components/editor/editor.tsx b/frontend/components/editor/editor.tsx index b155ef4..e76d42a 100644 --- a/frontend/components/editor/editor.tsx +++ b/frontend/components/editor/editor.tsx @@ -415,6 +415,13 @@ export default function CodeEditor({ // Select file and load content const selectFile = (tab: TTab) => { if (tab.id === activeFileId) return; + + setGenerate((prev) => { + return { + ...prev, + show: false, + }; + }); const exists = tabs.find((t) => t.id === tab.id); setTabs((prev) => {