hide generate on tab switch

This commit is contained in:
Ishaan Dey 2024-05-25 01:16:20 -07:00
parent b5425d3469
commit a16b530b56

View File

@ -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) => {