react-native-onyx 2.0.107 → 2.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OnyxUtils.js +1 -3
- package/package.json +1 -1
package/dist/OnyxUtils.js
CHANGED
|
@@ -29,7 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
/* eslint-disable no-continue */
|
|
30
30
|
const fast_equals_1 = require("fast-equals");
|
|
31
31
|
const clone_1 = __importDefault(require("lodash/clone"));
|
|
32
|
-
const pick_1 = __importDefault(require("lodash/pick"));
|
|
33
32
|
const DevTools_1 = __importDefault(require("./DevTools"));
|
|
34
33
|
const Logger = __importStar(require("./Logger"));
|
|
35
34
|
const OnyxCache_1 = __importStar(require("./OnyxCache"));
|
|
@@ -1150,8 +1149,7 @@ function updateSnapshots(data, mergeFn) {
|
|
|
1150
1149
|
return;
|
|
1151
1150
|
}
|
|
1152
1151
|
const oldValue = updatedData[key] || {};
|
|
1153
|
-
|
|
1154
|
-
updatedData = Object.assign(Object.assign({}, updatedData), { [key]: Object.assign(oldValue, newValue) });
|
|
1152
|
+
updatedData = Object.assign(Object.assign({}, updatedData), { [key]: Object.assign(oldValue, value) });
|
|
1155
1153
|
});
|
|
1156
1154
|
// Skip the update if there's no data to be merged
|
|
1157
1155
|
if (utils_1.default.isEmptyObject(updatedData)) {
|