From 8a9875ecfa1875b4dab7ecb21bab580137161d4c Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 17 Mar 2020 18:38:49 +0100 Subject: [PATCH] fix filling or targetRelations during backend2frontend sync --- src/public/javascripts/services/ws.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/javascripts/services/ws.js b/src/public/javascripts/services/ws.js index c458c2d7d..5dc771427 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); } } }