From cd3d3e99d0376231d1dca16d3206dc00300fe610 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Wed, 28 Feb 2024 21:50:58 +0000 Subject: [PATCH] Make sure the newly created workspaces have the correct default values for the features --- src/libs/actions/Policy.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index e1da946e81d8..57dfe339d6a7 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -1402,6 +1402,12 @@ function createWorkspace(policyOwnerEmail = '', makeMeAdmin = false, policyName outputCurrency, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, customUnits, + areCategoriesEnabled: true, + areTagsEnabled: false, + areDistanceRatessEnabled: false, + areWorkflowsEnabled: false, + areReportFieldsEnabled: false, + areConnectionsEnabled: false, }, }, { @@ -1803,6 +1809,12 @@ function createWorkspaceFromIOUPayment(iouReport: Report | EmptyObject): string outputCurrency: CONST.CURRENCY.USD, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD, customUnits, + areCategoriesEnabled: true, + areTagsEnabled: false, + areDistanceRatessEnabled: false, + areWorkflowsEnabled: false, + areReportFieldsEnabled: false, + areConnectionsEnabled: false, }; const optimisticData: OnyxUpdate[] = [