Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix
zadam657d01da9515
diff --git a/src/public/javascripts/widgets/note_title.js b/src/public/javascripts/widgets/note_title.jsindex 8d8fb8d716..1c20cc49cb 100644--- a/src/public/javascripts/widgets/note_title.js+++ b/src/public/javascripts/widgets/note_title.js@@ -158,7 +158,7 @@ export default class NoteTitleWidget extends TabAwareWidget {}async showPaths() {- const note = this.tabContext.note;+ const {note, notePath} = this.tabContext;if (note.noteId === 'root') {// root doesn't have any parent, but it's still technically 1 path@@ -175,7 +175,7 @@ export default class NoteTitleWidget extends TabAwareWidget {this.$notePathCount.html(parents.length + " path" + (parents.length > 1 ? "s" : ""));this.$notePathList.empty();- const pathSegments = this.notePath.split("/");+ const pathSegments = notePath.split("/");const activeNoteParentNoteId = pathSegments[pathSegments.length - 2]; // we know this is not root so there must be a parentfor (const parentNote of parents) {