Skip to content

Commit 015e076

Browse files
committed
fix type
1 parent 65f7bca commit 015e076

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function MoneyRequestReportNavigation({reportID, shouldDisplayNarrowVersion}: Mo
3939
const {type, status, sortBy, sortOrder, groupBy} = lastSearchQuery?.queryJSON ?? {};
4040
let results: Array<string | undefined> = [];
4141
if (!!type && !!currentSearchResults?.data && !!currentSearchResults?.search) {
42-
const searchData = getSections({
42+
const [searchData] = getSections({
4343
type,
4444
data: currentSearchResults.data,
4545
currentAccountID: currentUserDetails.accountID,

src/components/SelectionListWithSections/Search/TransactionGroupListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ function TransactionGroupListItem<TItem extends ListItem>({
104104
if (!transactionsSnapshot?.data) {
105105
return [];
106106
}
107-
const sectionData = getSections({
107+
const [sectionData] = getSections({
108108
type: CONST.SEARCH.DATA_TYPES.EXPENSE,
109109
data: transactionsSnapshot?.data,
110110
currentAccountID: accountID,
111111
currentUserEmail: currentUserDetails.email ?? '',
112112
formatPhoneNumber,
113113
isActionLoadingSet,
114-
}) as TransactionListItemType[];
114+
}) as [TransactionListItemType[], number];
115115
return sectionData.map((transactionItem) => ({
116116
...transactionItem,
117117
isSelected: selectedTransactionIDsSet.has(transactionItem.transactionID),

0 commit comments

Comments
 (0)