Skip to content

Commit 180e658

Browse files
committed
fix tests
1 parent 6b1a6be commit 180e658

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/OnyxUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,8 @@ function setCollectionWithRetry<TKey extends CollectionKeyBase>({collectionKey,
14531453
const keyValuePairs = OnyxUtils.prepareKeyValuePairsForStorage(mutableCollection, true, undefined, true);
14541454
const previousCollection = OnyxUtils.getCachedCollection(collectionKey);
14551455

1456+
keyValuePairs.forEach(([key, value]) => cache.set(key, value));
1457+
14561458
const updatePromise = OnyxUtils.scheduleNotifyCollectionSubscribers(collectionKey, mutableCollection, previousCollection);
14571459

14581460
return Storage.multiSet(keyValuePairs)

0 commit comments

Comments
 (0)