hide generate on tab switch
This commit is contained in:
parent
b5425d3469
commit
a16b530b56
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user