fix hidden notes appearing in note map, closes #2403

This commit is contained in:
zadam
2021-12-04 13:45:15 +01:00
parent 89c04e6b6b
commit 26bcfe5160
2 changed files with 17 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ function getHiddenRoot() {
// isInheritable: false means that this notePath is automatically not preffered but at the same time
// the flag is not inherited to the children
hidden.addLabel('archived', "", false);
hidden.addLabel('excludeFromNoteMap', "", true);
}
return hidden;
@@ -206,6 +207,12 @@ function createMissingSpecialNotes() {
getSinglesNoteRoot();
getSinglesNoteRoot();
getGlobalNoteMap();
const hidden = getHiddenRoot();
if (!hidden.hasOwnedLabel('excludeFromNoteMap')) {
hidden.addLabel('excludeFromNoteMap', "", true);
}
}
module.exports = {