This commit is contained in:
zadam
2019-09-06 20:50:57 +02:00
parent 135102d2b5
commit 0226b1e9a8
3 changed files with 6 additions and 2 deletions

View File

@@ -426,7 +426,7 @@ class TabContext {
for (const parentNote of parents) {
const parentNotePath = await treeService.getSomeNotePath(parentNote);
// this is to avoid having root notes leading '/'
const notePath = parentNotePath ? (parentNotePath + '/' + this.noteId) : this.noteId;
const notePath = parentNotePath ? (parentNotePath + '/' + this.note.noteId) : this.note.noteId;
const isCurrent = activeNoteParentNoteId === parentNote.noteId;
await this.addPath(notePath, isCurrent);