diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index 0935dd384f48..aa64611b210f 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -413,6 +413,7 @@ function setWorkspaceAutoReporting(policyID: string, enabled: boolean) { harvesting: { enabled: true, }, + autoReportingFrequency: CONST.POLICY.AUTO_REPORTING_FREQUENCIES.WEEKLY, pendingFields: {isAutoApprovalEnabled: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE}, }, }, @@ -424,6 +425,7 @@ function setWorkspaceAutoReporting(policyID: string, enabled: boolean) { key: `${ONYXKEYS.COLLECTION.POLICY}${policyID}`, value: { autoReporting: !enabled, + autoReportingFrequency: null, pendingFields: {isAutoApprovalEnabled: null, harvesting: null}, }, },