From 1243782b6a039c2802870681421cb85386521136 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 29 May 2026 21:20:24 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20capture=20vault/path=20avant=20closeEdit?= =?UTF-8?q?or()=20pour=20rafraichir=20l'affichage=20apr=C3=A8s=20save?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/utils.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/js/utils.js b/frontend/js/utils.js index 616a35d..8426ae1 100644 --- a/frontend/js/utils.js +++ b/frontend/js/utils.js @@ -424,10 +424,12 @@ async function saveFile() { saveBtn.innerHTML = ''; safeCreateIcons(); + const _savedVault = state.editorVault; + const _savedPath = state.editorPath; setTimeout(() => { closeEditor(); - if (state.currentVault === state.editorVault && state.currentPath === state.editorPath) { - openFile(state.currentVault, state.currentPath); + if (state.currentVault === _savedVault && state.currentPath === _savedPath) { + openFile(_savedVault, _savedPath); } }, 800); } catch (err) {