Skip to content

Commit bc4bf42

Browse files
Revert "[CP Staging] Revert "RevertSplitTransaction fails with UNIQUE constraint: App reuses existing reportActionID instead of generating a new one""
1 parent 96af6f9 commit bc4bf42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/libs/actions/IOU/Split.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ function updateSplitTransactions({
12261226
newReportTotal: reportTotals.get(splitExpense?.reportID ?? String(CONST.DEFAULT_NUMBER_ID)) ?? 0,
12271227
newNonReimbursableTotal: (transactionReport?.nonReimbursableTotal ?? 0) - changesInReportTotal,
12281228
isSplitExpense: true,
1229-
currentReportActionID: currentReportAction?.reportActionID,
1229+
currentReportActionID: !isReverseSplitOperation ? currentReportAction?.reportActionID : undefined,
12301230
isASAPSubmitBetaEnabled,
12311231
currentUserAccountIDParam: currentUserPersonalDetails?.accountID,
12321232
currentUserEmailParam: currentUserPersonalDetails?.login ?? '',

0 commit comments

Comments
 (0)