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
4 changes: 2 additions & 2 deletions src/libs/actions/Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import type UpdateRoomVisibilityParams from '@libs/API/parameters/UpdateRoomVisi
import {READ_COMMANDS, SIDE_EFFECT_REQUEST_COMMANDS, WRITE_COMMANDS} from '@libs/API/types';
import * as ApiUtils from '@libs/ApiUtils';
import * as Browser from '@libs/Browser';
import * as CollectionUtils from '@libs/CollectionUtils';
import {extractCollectionItemID} from '@libs/CollectionUtils';
import type {CustomRNImageManipulatorResult} from '@libs/cropOrRotateImage/types';
import DateUtils from '@libs/DateUtils';
import * as Environment from '@libs/Environment/Environment';
Expand Down Expand Up @@ -470,7 +470,7 @@ Onyx.connect({
if (!key || !actions) {
return;
}
const reportID = CollectionUtils.extractCollectionItemID(key);
const reportID = extractCollectionItemID(key);
allReportActions[reportID] = actions;
},
});
Expand Down
2 changes: 1 addition & 1 deletion tests/actions/IOUTest/SplitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7973,7 +7973,7 @@ describe('createDistanceRequest', () => {
const allTransactions = await getOnyxValue(ONYXKEYS.COLLECTION.TRANSACTION);
expect(Object.keys(allReports ?? {}).length).toBeGreaterThan(initialReportsCount);
expect(Object.keys(allTransactions ?? {}).length).toBeGreaterThanOrEqual(1);
const createdTransaction = Object.values(allTransactions ?? {}).at(0) as Transaction | undefined;
const createdTransaction = Object.values(allTransactions ?? {}).at(0);
expect(createdTransaction).toBeTruthy();
});
});
Loading