From 8e8919be9b70dd2680275b57f77c2200a4b5cd74 Mon Sep 17 00:00:00 2001 From: Florent De Neve Date: Tue, 11 Jun 2024 16:45:23 +0200 Subject: [PATCH] Remove policy.submitsTo as it does not exist anymore --- src/types/onyx/Policy.ts | 3 --- tests/utils/LHNTestUtils.tsx | 1 - tests/utils/collections/policies.ts | 1 - 3 files changed, 5 deletions(-) diff --git a/src/types/onyx/Policy.ts b/src/types/onyx/Policy.ts index ad8575a818299..fa2209672b534 100644 --- a/src/types/onyx/Policy.ts +++ b/src/types/onyx/Policy.ts @@ -786,9 +786,6 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback< /** When the monthly scheduled submit should happen */ autoReportingOffset?: AutoReportingOffset; - /** The accountID of manager who the employee submits their expenses to on paid policies */ - submitsTo?: number; - /** The employee list of the policy */ employeeList?: OnyxTypes.PolicyEmployeeList; diff --git a/tests/utils/LHNTestUtils.tsx b/tests/utils/LHNTestUtils.tsx index 89c31d92843ef..925ce6030c097 100644 --- a/tests/utils/LHNTestUtils.tsx +++ b/tests/utils/LHNTestUtils.tsx @@ -236,7 +236,6 @@ function getFakePolicy(id = '1', name = 'Workspace-Test-001'): Policy { }, autoReportingOffset: 1, preventSelfApproval: true, - submitsTo: 123456, defaultBillable: false, disabledFields: {defaultBillable: true, reimbursable: false}, approvalMode: 'BASIC', diff --git a/tests/utils/collections/policies.ts b/tests/utils/collections/policies.ts index 5507c9e754362..d34a2f6474b59 100644 --- a/tests/utils/collections/policies.ts +++ b/tests/utils/collections/policies.ts @@ -15,7 +15,6 @@ export default function createRandomPolicy(index: number): Policy { }, autoReportingOffset: 1, preventSelfApproval: randBoolean(), - submitsTo: index, outputCurrency: randCurrencyCode(), role: rand(Object.values(CONST.POLICY.ROLE)), owner: randEmail(),