reset isSaving before closing file edit modal
3clyp50 committed
Feb 1, 2026 at 20:27 UTC
8f0bae7ba456c5b6ca087ec7967cd5a2e81620bc
1 file changed
+2
-1
webui/components/modals/file-editor/file-editor-store.js
+2
-1
@@ -175,12 +175,13 @@ const model = {
175
await this.onSaveSuccess();
176
}
177
178
+ // Reset isSaving before closing so beforeCloseFileEditor() allows it
179
+ this.isSaving = false;
180
this.closeFileEditor();
181
} catch (error) {
182
const message = error?.message || "Failed to save file";
183
this.editSaveError = message;
184
window.toastFrontendError(message, "Save File Error");
183
- } finally {
185
this.isSaving = false;
186
}
187
},