Skip to content

Build your personal knowledge base with Trilium Notes

fix filling or targetRelations during backend2frontend sync

zadam8a9875ecfa18
diff --git a/src/public/javascripts/services/ws.js b/src/public/javascripts/services/ws.js
index c458c2d7de..5dc771427e 100644
--- a/src/public/javascripts/services/ws.js
+++ b/src/public/javascripts/services/ws.js
@@ -306,8 +306,8 @@ async function processSyncRows(syncRows) {
sourceNote.attributes.push(attribute.attributeId);
}
- if (targetNote && !targetNote.attributes.includes(attribute.attributeId)) {
- targetNote.attributes.push(attribute.attributeId);
+ if (targetNote && !targetNote.targetRelations.includes(attribute.attributeId)) {
+ targetNote.targetRelations.push(attribute.attributeId);
}
}
}