chore(client): fix typecheck issue

This commit is contained in:
Elian Doran
2025-11-15 16:01:30 +02:00
parent 57f220e64c
commit 9e34d3a668

View File

@@ -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;