From 44632c01e8ac43843bc9afd86fce819fd2f497d9 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Tue, 4 Apr 2023 05:58:12 -1000 Subject: [PATCH] Return failure data --- src/libs/actions/Report.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index ff896d561c64..cb75f7d9d1d5 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -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 = {