Skip to content

Commit

Permalink
Merge pull request Expensify#53616 from wildan-m/wildan/fix/45576-suc…
Browse files Browse the repository at this point in the history
…cess-data-patch

patch success data to prevent issue report object not considered to null
  • Loading branch information
luacmartins authored Dec 6, 2024
2 parents 5f3782b + eeade1a commit 8b8c9ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1902,10 +1902,7 @@ function getDeleteTrackExpenseInformation(
successData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadID}`,
value: Object.keys(transactionThread).reduce<Record<string, null>>((acc, key) => {
acc[key] = null;
return acc;
}, {}),
value: null,
});
}

Expand Down Expand Up @@ -5972,10 +5969,7 @@ function deleteMoneyRequest(transactionID: string, reportAction: OnyxTypes.Repor
successData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${transactionThreadID}`,
value: Object.keys(transactionThread).reduce<Record<string, null>>((acc, key) => {
acc[key] = null;
return acc;
}, {}),
value: null,
});
}

Expand Down

0 comments on commit 8b8c9ab

Please sign in to comment.