fix file save cancellation

This commit is contained in:
CodedSakura 2026-07-15 11:58:58 +03:00
parent 4ba89c62fb
commit 7da053eb9c
1 changed files with 1 additions and 2 deletions

View File

@ -81,11 +81,10 @@ export async function saveFile(name = undefined) {
emitEvent("fileSave:nameDesign"); emitEvent("fileSave:nameDesign");
const nameEvent = await awaitEvent("fileSave:nameDesign:named"); const nameEvent = await awaitEvent("fileSave:nameDesign:named");
name = nameEvent.detail; name = nameEvent.detail;
console.log(nameEvent)
} }
if (!name) { if (!name) {
name = "unnamed"; return;
} }
const multiblockType = getPlannerMultiblockType(); const multiblockType = getPlannerMultiblockType();