diff --git a/lib/OnyxUtils.ts b/lib/OnyxUtils.ts index 99e8b0bf..67c654c7 100644 --- a/lib/OnyxUtils.ts +++ b/lib/OnyxUtils.ts @@ -1014,7 +1014,7 @@ function applyMerge(existingValue: OnyxValue, changes: Array typeof change === 'object')) { + if (changes.some((change) => change && typeof change === 'object')) { // Object values are then merged one after the other return changes.reduce( (modifiedData, change) => utils.fastMerge(modifiedData as Record, change as Record, shouldRemoveNullObjectValues),