diff --git a/src/public/app/services/tree.js b/src/public/app/services/tree.js index ee4b5bb83..4eb6d32ed 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') {