Skip to content

Commit

Permalink
Merge pull request #52350 from NJ-2020/fix/51651
Browse files Browse the repository at this point in the history
fix selecting non-existing user in offline mode
  • Loading branch information
lakchote authored Nov 13, 2024
2 parents 7256ad6 + 0763e4b commit c24d217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,10 @@ function openReport(
// eslint-disable-next-line rulesdir/no-multiple-api-calls
API.paginate(CONST.API_REQUEST_TYPE.WRITE, WRITE_COMMANDS.OPEN_REPORT, parameters, {optimisticData, successData, failureData}, paginationConfig, {
checkAndFixConflictingRequest: (persistedRequests) =>
resolveDuplicationConflictAction(persistedRequests, (request) => request.command === WRITE_COMMANDS.OPEN_REPORT && request.data?.reportID === reportID),
resolveDuplicationConflictAction(
persistedRequests,
(request) => request.command === WRITE_COMMANDS.OPEN_REPORT && request.data?.reportID === reportID && request.data?.emailList === parameters.emailList,
),
});
}
}
Expand Down

0 comments on commit c24d217

Please sign in to comment.