Skip to content

Commit

Permalink
Remove accidentally added client only Report key state
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-marcellini committed Dec 24, 2024
1 parent b89a319 commit 55572c3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/libs/DebugUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
case 'iouReportID':
case 'preexistingReportID':
case 'private_isArchived':
case 'state':
case 'welcomeMessage':
return validateString(value);
case 'hasOutstandingChildRequest':
Expand Down Expand Up @@ -631,7 +630,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
partial: CONST.RED_BRICK_ROAD_PENDING_ACTION,
reimbursed: CONST.RED_BRICK_ROAD_PENDING_ACTION,
preview: CONST.RED_BRICK_ROAD_PENDING_ACTION,
state: CONST.RED_BRICK_ROAD_PENDING_ACTION,
welcomeMessage: CONST.RED_BRICK_ROAD_PENDING_ACTION,
});
}
Expand Down
5 changes: 1 addition & 4 deletions src/types/onyx/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
/** ID of the chat report */
chatReportID?: string;

/** The state of the report */
state?: keyof typeof CONST.REPORT.STATE_NUM;

/** The state number of the report */
/** The state that the report is currently in */
stateNum?: ValueOf<typeof CONST.REPORT.STATE_NUM>;

/** The status of the current report */
Expand Down
1 change: 0 additions & 1 deletion src/types/utils/whitelistedReportKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ type WhitelistedReport = OnyxCommon.OnyxValueWithOfflineFeedback<
};
// eslint-disable-next-line @typescript-eslint/naming-convention
private_isArchived: unknown;
state: unknown;
welcomeMessage: unknown;
},
PolicyReportField['fieldID']
Expand Down
1 change: 0 additions & 1 deletion tests/data/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ const convertedInvoiceChat: OnyxTypes.Report = {
private_isArchived: '',
reportID: '7605647250932303',
reportName: 'Chat Report',
state: 'OPEN',
stateNum: 0,
statusNum: 0,
total: 0,
Expand Down

0 comments on commit 55572c3

Please sign in to comment.