Skip to content

Commit c835e8d

Browse files
authored
Merge pull request Expensify#82714 from ZhenjaHorbach/revert-82713-revert-82315-fix-revertSplitTransaction-fails-with-unique-constraint
Revert "[CP Staging] Revert "RevertSplitTransaction fails with UNIQUE constraint: App reuses existing reportActionID instead of generating a new one""
2 parents 74ab792 + bc4bf42 commit c835e8d

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)