Skip to content

Commit

Permalink
Merge pull request #16918 from Expensify/marcaaron-fixReport403Missin…
Browse files Browse the repository at this point in the history
…gAccess

[CP Staging] Fix infinity loading display for inaccessible report

(cherry picked from commit ae7e6e1)
  • Loading branch information
deetergp authored and OSBotify committed Apr 4, 2023
1 parent eca2a16 commit 380db2f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,18 @@ function openReport(reportID, participantList = [], newReportObject = {}) {
isOptimisticReport: false,
},
};
const reportFailureData = {
onyxMethod: CONST.ONYX.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`,
value: {
isLoadingReportActions: false,
},
};

const onyxData = {
optimisticData: [optimisticReportData],
successData: [reportSuccessData],
failureData: [reportFailureData],
};

const params = {
Expand Down

0 comments on commit 380db2f

Please sign in to comment.