Remove already deleted records on on_write result

issue5771
review26521002
This commit is contained in:
Sergi Almacellas Abellana
2016-08-17 10:57:09 +02:00
parent bb6d80e4f6
commit a7370447b9
+1 -1
View File
@@ -67,7 +67,7 @@
});
return root_group.on_write_ids(record_ids).then(function(reload_ids) {
reload_ids = reload_ids.filter(function(e) {
return !~reload_ids.indexOf(e);
return !~record_ids.indexOf(e);
});
return this.execute('delete', [record_ids], context)
.then(function() {