Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/next58' into next58

zadam1f468f81cc38
diff --cc src/public/app/components/note_context.js
index 0b6eab882d,aafda843b7..0f042681e5
--- a/src/public/app/components/note_context.js
+++ b/src/public/app/components/note_context.js
@@@ -63,8 -59,13 +63,11 @@@ class NoteContext extends Component
});
}
- if (this.hoistedNoteId === 'root' && this.notePath.startsWith("root/hidden")) {
- console.log(resolvedNotePath, "resolvedNotePath");
-
+ if (this.hoistedNoteId === 'root'
+ && this.notePath.startsWith("root/hidden")
+ && !this.note.hasLabel("keepCurrentHoisting")
+ ) {
- // hidden subtree displays only when hoisted, so it doesn't make sense to keep root as hoisted note
+ // hidden subtree displays only when hoisted so it doesn't make sense to keep root as hoisted note
let hoistedNoteId = 'hidden';