mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-07-24 07:45:57 +02:00
Refresh outline panel when switching notes (#184)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user