Skip to content

Commit

Permalink
fix selecting non-existing user in offline mode
Browse files Browse the repository at this point in the history
  • Loading branch information
NJ-2020 committed Nov 12, 2024
1 parent c75b1bc commit 0763e4b
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 @@ -1001,7 +1001,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 0763e4b

Please sign in to comment.