Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit a1bfc6a

Browse files
committed
feat(hidden_subtree): update help note icons
1 parent 97bc103 commit a1bfc6a

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/services/hidden_subtree.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,13 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree
408408
value: attr.value,
409409
isInheritable: false
410410
}).save();
411-
} else if (attr.name === "docName") {
412-
// Updating docname
413-
existingAttribute.value = attr.value ?? "";
414-
existingAttribute.save();
411+
} else if (attr.name === "docName"
412+
|| (existingAttribute.noteId.startsWith("_help") && attr.name === "iconClass")) {
413+
if (existingAttribute.value !== attr.value) {
414+
existingAttribute.value = attr.value ?? "";
415+
console.log("Updating attribute ", attrId);
416+
existingAttribute.save();
417+
}
415418
}
416419
}
417420

0 commit comments

Comments
 (0)