Skip to content

Commit a6d1159

Browse files
committed
return early
1 parent 05ee567 commit a6d1159

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Onyx.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ function updateSnapshots(data: OnyxUpdate[]) {
584584

585585
if (Array.isArray(value)) {
586586
updatedData[key] = value;
587+
return;
587588
}
588589

589590
const oldValue = updatedData[key] || {};

0 commit comments

Comments
 (0)