Skip to content

Build your personal knowledge base with Trilium Notes

fix bug

zadam873953cbaf2f
diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.js
index ee4b5bb83f..4eb6d32ed8 100644
--- a/src/public/app/services/tree.js
+++ b/src/public/app/services/tree.js
@@ -101,7 +101,7 @@ function getSomeNotePathSegments(note, hoistedNotePath = 'root') {
const notePaths = note.getSortedNotePaths(hoistedNotePath);
- return notePaths[0].notePath;
+ return notePaths[0];
}
function getSomeNotePath(note, hoistedNotePath = 'root') {