Skip to content

Commit a2ba002

Browse files
committed
remove picking only existing props
1 parent fe8af83 commit a2ba002

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/OnyxUtils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import {deepEqual} from 'fast-equals';
33
import lodashClone from 'lodash/clone';
44
import type {ValueOf} from 'type-fest';
5-
import lodashPick from 'lodash/pick';
65
import DevTools from './DevTools';
76
import * as Logger from './Logger';
87
import type Onyx from './Onyx';
@@ -1417,9 +1416,8 @@ function updateSnapshots(data: OnyxUpdate[], mergeFn: typeof Onyx.merge): Array<
14171416
}
14181417

14191418
const oldValue = updatedData[key] || {};
1420-
const newValue = lodashPick(value, Object.keys(snapshotData[key]));
14211419

1422-
updatedData = {...updatedData, [key]: Object.assign(oldValue, newValue)};
1420+
updatedData = {...updatedData, [key]: Object.assign(oldValue, value)};
14231421
});
14241422

14251423
// Skip the update if there's no data to be merged

0 commit comments

Comments
 (0)