chore(client/ts): port highlights_list

This commit is contained in:
Elian Doran
2025-01-07 12:34:10 +02:00
parent 0713b4aec8
commit 85c225fe05
9 changed files with 133 additions and 66 deletions

View File

@@ -30,7 +30,7 @@ async function removeAttributeById(noteId: string, attributeId: string) {
* 2. attribute is owned by the template of the note
* 3. attribute is owned by some note's ancestor and is inheritable
*/
function isAffecting(attrRow: AttributeRow, affectedNote: FNote) {
function isAffecting(attrRow: AttributeRow, affectedNote: FNote | null | undefined) {
if (!affectedNote || !attrRow) {
return false;
}