Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/libs/DebugUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,6 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
return validateConstantEnum(value, CONST.RED_BRICK_ROAD_PENDING_ACTION);
case 'pendingFields':
return validateObject<ObjectElement<Report | ReportNameValuePairs, 'pendingFields'>>(value, {
transactionCount: CONST.RED_BRICK_ROAD_PENDING_ACTION,
description: CONST.RED_BRICK_ROAD_PENDING_ACTION,
privateNotes: CONST.RED_BRICK_ROAD_PENDING_ACTION,
currency: CONST.RED_BRICK_ROAD_PENDING_ACTION,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/SearchUIUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ function getTransactionItemCommonFormattedProperties(
to: SearchPersonalDetails,
policy: OnyxTypes.Policy,
formatPhoneNumber: LocaleContextProps['formatPhoneNumber'],
report: OnyxTypes.Report,
report: OnyxTypes.Report | undefined,
): Pick<TransactionListItemType, 'formattedFrom' | 'formattedTo' | 'formattedTotal' | 'formattedMerchant' | 'date'> {
const isExpenseReport = report?.type === CONST.REPORT.TYPE.EXPENSE;

Expand Down
3 changes: 0 additions & 3 deletions src/types/onyx/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,6 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
/** Collection of report permissions granted to the current user */
permissions?: Array<ValueOf<typeof CONST.REPORT.PERMISSIONS>>;

/** The number of transactions on the report */
transactionCount?: number;

/** The trip data for a trip room */
tripData?: {
/** The start date of a trip */
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 @@ -61,7 +61,6 @@ type WhitelistedReport = OnyxCommon.OnyxValueWithOfflineFeedback<
privateNotes: unknown;
fieldList: unknown;
permissions: unknown;
transactionCount: unknown;
tripData: {
startDate: unknown;
endDate: unknown;
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Search/SearchUIUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ describe('SearchUIUtils', () => {
expect(distanceTransaction).toBeDefined();
expect(distanceTransaction?.iouRequestType).toBe(CONST.IOU.REQUEST_TYPE.DISTANCE);

const expectedPropertyCount = 54;
const expectedPropertyCount = 53;
expect(Object.keys(distanceTransaction ?? {}).length).toBe(expectedPropertyCount);
});

Expand Down Expand Up @@ -1820,7 +1820,7 @@ describe('SearchUIUtils', () => {
expect(distanceTransaction).toBeDefined();
expect(distanceTransaction?.iouRequestType).toBe(CONST.IOU.REQUEST_TYPE.DISTANCE);

const expectedPropertyCount = 54;
const expectedPropertyCount = 53;
expect(Object.keys(distanceTransaction ?? {}).length).toBe(expectedPropertyCount);
});

Expand Down