fix activating notes in the hidden subtree

This commit is contained in:
zadam
2022-10-16 23:11:46 +02:00
parent 7e83d3a54d
commit 4f1f632a7d
3 changed files with 28 additions and 6 deletions

View File

@@ -314,6 +314,10 @@ function parseNotePath(notePath) {
return noteIds;
}
function isNotePathInHiddenSubtree(notePath) {
return notePath?.includes("root/hidden");
}
export default {
resolveNotePath,
resolveNotePathToSegments,
@@ -328,5 +332,6 @@ export default {
getNotePathTitle,
getNoteTitleWithPathAsSuffix,
getHashValueFromAddress,
parseNotePath
parseNotePath,
isNotePathInHiddenSubtree
};