fix(note_tree): subtree hidden cannot be overridden through inheritance

This commit is contained in:
Elian Doran
2026-01-10 10:17:09 +02:00
parent 5cabc6379d
commit d77d30f29e
4 changed files with 9 additions and 7 deletions

View File

@@ -37,6 +37,8 @@ export async function setRelation(noteId: string, name: string, value: string =
* will be removed. If the label is inherited from a parent note, it will be overridden to `false`. If the label does
* not exist, it will be added with an empty value.
*
* When checking if the boolean value is set, don't use `note.hasLabel`; instead use `note.isLabelTruthy`.
*
* @param note the note on which to toggle the label.
* @param labelName the name of the label to toggle.
*/