Skip to content

Commit 833a42c

Browse files
authored
Merge pull request #43485 from Expensify/flo_rmsubmitsto
Remove policy.submitsTo as it does not exist anymore
2 parents 8a26c9d + 1fef3bd commit 833a42c

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

src/types/onyx/Policy.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,6 @@ type Policy = OnyxCommon.OnyxValueWithOfflineFeedback<
11471147
/** When the monthly scheduled submit should happen */
11481148
autoReportingOffset?: AutoReportingOffset;
11491149

1150-
/** The accountID of manager who the employee submits their expenses to on paid policies */
1151-
submitsTo?: number;
1152-
11531150
/** The employee list of the policy */
11541151
employeeList?: OnyxTypes.PolicyEmployeeList;
11551152

tests/utils/LHNTestUtils.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ function getFakePolicy(id = '1', name = 'Workspace-Test-001'): Policy {
223223
},
224224
autoReportingOffset: 1,
225225
preventSelfApproval: true,
226-
submitsTo: 123456,
227226
defaultBillable: false,
228227
disabledFields: {defaultBillable: true, reimbursable: false},
229228
approvalMode: 'BASIC',

tests/utils/collections/policies.ts

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export default function createRandomPolicy(index: number): Policy {
1515
},
1616
autoReportingOffset: 1,
1717
preventSelfApproval: randBoolean(),
18-
submitsTo: index,
1918
outputCurrency: randCurrencyCode(),
2019
role: rand(Object.values(CONST.POLICY.ROLE)),
2120
owner: randEmail(),

0 commit comments

Comments
 (0)