mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
minimongo: clone objects inserted with $addToSet
This commit is contained in:
@@ -210,7 +210,7 @@ LocalCollection._modifiers = {
|
||||
for (var i = 0; i < x.length; i++)
|
||||
if (LocalCollection._f._equal(value, x[i]))
|
||||
return;
|
||||
x.push(value);
|
||||
x.push(EJSON.clone(value));
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user