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
|
// Select file and load content
|
||||||
const selectFile = (tab: TTab) => {
|
const selectFile = (tab: TTab) => {
|
||||||
if (tab.id === activeFileId) return;
|
if (tab.id === activeFileId) return;
|
||||||
|
|
||||||
|
setGenerate((prev) => {
|
||||||
|
return {
|
||||||
|
...prev,
|
||||||
|
show: false,
|
||||||
|
};
|
||||||
|
});
|
||||||
const exists = tabs.find((t) => t.id === tab.id);
|
const exists = tabs.find((t) => t.id === tab.id);
|
||||||
|
|
||||||
setTabs((prev) => {
|
setTabs((prev) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user