From a46ff2e8e7b4ebd05b7ab4b0e2f99a7aa03d0d0d Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Thu, 21 Sep 2023 14:40:48 +0200 Subject: [PATCH] fix: use set in Storage.mergeItem --- lib/storage/providers/IDBKeyVal.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/storage/providers/IDBKeyVal.js b/lib/storage/providers/IDBKeyVal.js index c72ce7507..75ec074eb 100644 --- a/lib/storage/providers/IDBKeyVal.js +++ b/lib/storage/providers/IDBKeyVal.js @@ -70,7 +70,8 @@ const provider = { * @return {Promise} */ mergeItem(key, _changes, modifiedData) { - return provider.multiMerge([[key, modifiedData]]); + // Since Onyx also merged the existing value with the changes, we can just set the value directly + return provider.setItem(key, modifiedData); }, /**