Refresh outline panel when switching notes (#184)

This commit is contained in:
Yuri Karamian
2026-06-28 19:12:29 +02:00
parent b643eeb884
commit a192723fbd
+6 -5
View File
@@ -2919,12 +2919,13 @@
isLoadingNote = false;
});
} else {
// Editor element not in DOM yet (first note load).
// Store content and let the $effect on editorElement handle init.
pendingContent = content;
isLoadingNote = false;
}
// Editor element not in DOM yet (first note load).
// Store content and let the $effect on editorElement handle init.
pendingContent = content;
isLoadingNote = false;
}
if (!isMobile && showOutline) scheduleOutline();
}
function stripTitleH1(md: string): string {
const title = $activeNote?.meta.title;