mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 21:44:31 +01:00
chore(client): fix typecheck issue
This commit is contained in:
parent
57f220e64c
commit
9e34d3a668
@ -70,8 +70,8 @@ function removeOwnedLabelByName(note: FNote, labelName: string) {
|
|||||||
*/
|
*/
|
||||||
function removeOwnedRelationByName(note: FNote, relationName: string) {
|
function removeOwnedRelationByName(note: FNote, relationName: string) {
|
||||||
const relation = note.getOwnedRelation(relationName);
|
const relation = note.getOwnedRelation(relationName);
|
||||||
if (label) {
|
if (relation) {
|
||||||
removeAttributeById(note.noteId, label.attributeId);
|
removeAttributeById(note.noteId, relation.attributeId);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user