summaryrefslogtreecommitdiff
path: root/common/src/leap/soledad
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/leap/soledad')
-rw-r--r--common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js b/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
index 220345dc..04ceb2ec 100644
--- a/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
+++ b/common/src/leap/soledad/common/ddocs/syncs/views/changes_to_return/map.js
@@ -6,6 +6,7 @@ function(doc) {
emit([source_replica_uid, 0], null);
else if (changes.length == 0)
emit([source_replica_uid, 0], []);
+ else
for (var i = 0; i < changes['changes_to_return'].length; i++)
emit(
[source_replica_uid, i],