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;
|
isLoadingNote = false;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Editor element not in DOM yet (first note load).
|
// Editor element not in DOM yet (first note load).
|
||||||
// Store content and let the $effect on editorElement handle init.
|
// Store content and let the $effect on editorElement handle init.
|
||||||
pendingContent = content;
|
pendingContent = content;
|
||||||
isLoadingNote = false;
|
isLoadingNote = false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
if (!isMobile && showOutline) scheduleOutline();
|
||||||
|
}
|
||||||
|
|
||||||
function stripTitleH1(md: string): string {
|
function stripTitleH1(md: string): string {
|
||||||
const title = $activeNote?.meta.title;
|
const title = $activeNote?.meta.title;
|
||||||
|
|||||||
Reference in New Issue
Block a user