diff --git a/lib/Onyx.js b/lib/Onyx.js index 2032f49ae..b996f64d6 100644 --- a/lib/Onyx.js +++ b/lib/Onyx.js @@ -962,7 +962,7 @@ function applyMerge(existingValue, changes) { // Object values are merged one after the other // lodash adds a small overhead so we don't use it here // eslint-disable-next-line prefer-object-spread, rulesdir/prefer-underscore-method - return _.reduce(changes, (modifiedData, change) => Object.assign({}, fastMerge(modifiedData, change)), + return _.reduce(changes, (modifiedData, change) => fastMerge(modifiedData, change), existingValue || {}); }