Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix filling or targetRelations during backend2frontend sync
zadam8a9875ecfa18
diff --git a/src/public/javascripts/services/ws.js b/src/public/javascripts/services/ws.jsindex 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);}}}