From 723dcc5a96534c6a1b64022bb8fbf5f5f62597fc Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 5 Oct 2023 18:45:57 +0800 Subject: [PATCH] fix wrong onyx key --- src/libs/actions/Report.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index d11b34d649ef..8b9859315d02 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -769,7 +769,7 @@ function readOldestAction(reportID, reportActionID) { optimisticData: [ { onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, + key: `${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`, value: { isLoadingMoreReportActions: true, }, @@ -778,7 +778,7 @@ function readOldestAction(reportID, reportActionID) { successData: [ { onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, + key: `${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`, value: { isLoadingMoreReportActions: false, }, @@ -787,7 +787,7 @@ function readOldestAction(reportID, reportActionID) { failureData: [ { onyxMethod: Onyx.METHOD.MERGE, - key: `${ONYXKEYS.COLLECTION.REPORT}${reportID}`, + key: `${ONYXKEYS.COLLECTION.REPORT_METADATA}${reportID}`, value: { isLoadingMoreReportActions: false, },