fix: editorView/editorVault → state.editorView/state.editorVault dans saveFile()
All checks were successful
CI / lint (push) Successful in 15s
CI / security (push) Successful in 9s
CI / test (push) Successful in 17s
CI / build (push) Successful in 3s

This commit is contained in:
Bruno Charest 2026-05-29 20:41:43 -04:00
parent 0befd161e3
commit 87b6a82df8

View File

@ -397,9 +397,9 @@ function closeEditor() {
}
async function saveFile() {
if ((!editorView && !state.fallbackEditorEl) || !editorVault || !state.editorPath) return;
if ((!state.editorView && !state.fallbackEditorEl) || !state.editorVault || !state.editorPath) return;
const content = editorView ? state.editorView.state.doc.toString() : state.fallbackEditorEl.value;
const content = state.editorView ? state.editorView.state.doc.toString() : state.fallbackEditorEl.value;
const saveBtn = document.getElementById("editor-save");
const originalHTML = saveBtn.innerHTML;