fix: switch to layer when created

This commit is contained in:
Radionic
2023-09-27 15:44:30 +08:00
parent 44df09ecdd
commit 29d5bce4d6
+4 -7
View File
@@ -201,13 +201,10 @@ export function SideBar() {
console.log(inputText, imagePromptsMulti.val);
my_modal_3.close();
e.target.elements[1].value = "";
if (
selectedLayer.val === null ||
selectedLayer.val === undefined ||
selectedLayer.val === ""
) {
selectedLayer.val = inputText;
}
selectedLayer.val = inputText;
imagePrompts.val = imagePromptsMulti.val[inputText];
drawSegment(getClicks());
updateImagePrompts();
},
},