Skip to content

Commit 05ee567

Browse files
committed
process array merge
1 parent 9bbb724 commit 05ee567

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Onyx.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ function updateSnapshots(data: OnyxUpdate[]) {
582582
return;
583583
}
584584

585+
if (Array.isArray(value)) {
586+
updatedData[key] = value;
587+
}
588+
585589
const oldValue = updatedData[key] || {};
586590
const newValue = lodashPick(value, Object.keys(snapshotData[key]));
587591

0 commit comments

Comments
 (0)