react-native-onyx 2.0.29 → 2.0.31
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 -1
- package/package.json +1 -1
package/dist/OnyxUtils.js
CHANGED
|
@@ -836,7 +836,7 @@ function applyMerge(existingValue, changes, shouldRemoveNullObjectValues) {
|
|
|
836
836
|
if (Array.isArray(lastChange)) {
|
|
837
837
|
return lastChange;
|
|
838
838
|
}
|
|
839
|
-
if (changes.some((change) => typeof change === 'object')) {
|
|
839
|
+
if (changes.some((change) => change && typeof change === 'object')) {
|
|
840
840
|
// Object values are then merged one after the other
|
|
841
841
|
return changes.reduce((modifiedData, change) => utils_1.default.fastMerge(modifiedData, change, shouldRemoveNullObjectValues), existingValue || {});
|
|
842
842
|
}
|