global note map should not rehoist

This commit is contained in:
zadam
2022-12-09 16:54:22 +01:00
parent 5ac332960e
commit 0f822b2761
3 changed files with 8 additions and 3 deletions

View File

@@ -61,8 +61,11 @@ class NoteContext extends Component {
console.log(resolvedNotePath, "resolvedNotePath");
if (this.hoistedNoteId === 'root' && this.notePath.startsWith("root/hidden")) {
// hidden subtree displays only when hoisted so it doesn't make sense to keep root as hoisted note
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
let hoistedNoteId = 'hidden';