diff --git a/packages/mongo-livedata/collection.js b/packages/mongo-livedata/collection.js index 75ade797d8..dd73418b35 100644 --- a/packages/mongo-livedata/collection.js +++ b/packages/mongo-livedata/collection.js @@ -375,7 +375,8 @@ _.each(["insert", "update", "remove", "upsert"], function (name) { args[0] = Meteor.Collection._rewriteSelector(args[0]); if (name === "update") { - var options = _.clone(args[2]) || {}; + // Mutate args but copy the original options object. + var options = args[2] = _.clone(args[2]) || {}; if (isUpsert) options.upsert = true; if (options && options.upsert) {