diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index f571d037890f..45fc139b6742 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -377,6 +377,9 @@ function deleteWorkspace(policyID: string, policyName: string) { [optimisticClosedReportAction.reportActionID]: optimisticClosedReportAction as ReportAction, }, }); + + // We are temporarily adding this workaround because 'DeleteWorkspace' doesn't + // support receiving the optimistic reportActions' ids for the moment. finallyData.push({ onyxMethod: Onyx.METHOD.MERGE, key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${reportID}`,