From 9e34d3a668aa8cf636d5863ff84cd20760875488 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 15 Nov 2025 16:01:30 +0200 Subject: [PATCH] chore(client): fix typecheck issue --- apps/client/src/services/attributes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/attributes.ts b/apps/client/src/services/attributes.ts index 13f440c3c..694eb1b02 100644 --- a/apps/client/src/services/attributes.ts +++ b/apps/client/src/services/attributes.ts @@ -70,8 +70,8 @@ function removeOwnedLabelByName(note: FNote, labelName: string) { */ function removeOwnedRelationByName(note: FNote, relationName: string) { const relation = note.getOwnedRelation(relationName); - if (label) { - removeAttributeById(note.noteId, label.attributeId); + if (relation) { + removeAttributeById(note.noteId, relation.attributeId); return true; } return false;