mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
always keep all the ancestors in the tree WIP
This commit is contained in:
@@ -50,7 +50,7 @@ export default class NotePathsWidget extends TabAwareWidget {
|
||||
const pathSegments = this.notePath.split("/");
|
||||
const activeNoteParentNoteId = pathSegments[pathSegments.length - 2]; // we know this is not root so there must be a parent
|
||||
|
||||
for (const parentNote of await this.note.getParentNotes()) {
|
||||
for (const parentNote of this.note.getParentNotes()) {
|
||||
const parentNotePath = await treeService.getSomeNotePath(parentNote);
|
||||
// this is to avoid having root notes leading '/'
|
||||
const notePath = parentNotePath ? (parentNotePath + '/' + this.noteId) : this.noteId;
|
||||
|
||||
Reference in New Issue
Block a user