From 3d4734f3a7884816d4eaf949accbe76f79701354 Mon Sep 17 00:00:00 2001 From: Wildan Muhlis Date: Thu, 5 Dec 2024 09:59:28 +0700 Subject: [PATCH] patch success data to prevent issue report object not considered to null --- src/libs/actions/IOU.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/libs/actions/IOU.ts b/src/libs/actions/IOU.ts index c02426ecdfb9..61326cea44f8 100644 --- a/src/libs/actions/IOU.ts +++ b/src/libs/actions/IOU.ts @@ -1856,10 +1856,7 @@ function getDeleteTrackExpenseInformation( successData.push({ onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadID}`, - value: Object.keys(transactionThread).reduce>((acc, key) => { - acc[key] = null; - return acc; - }, {}), + value: null, }); } @@ -5926,10 +5923,7 @@ function deleteMoneyRequest(transactionID: string, reportAction: OnyxTypes.Repor successData.push({ onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadID}`, - value: Object.keys(transactionThread).reduce>((acc, key) => { - acc[key] = null; - return acc; - }, {}), + value: null, }); }