Skip to content
1 change: 1 addition & 0 deletions src/components/Search/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@

openSearchReport(reportID, backTo);
},
[isMobileSelectionModeEnabled, type, toggleTransaction, hash, queryJSON, handleSearch, searchKey, markReportIDAsExpense],

Check warning on line 716 in src/components/Search/index.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

React Hook useCallback has an unnecessary dependency: 'type'. Either exclude it or remove the dependency array

Check warning on line 716 in src/components/Search/index.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

React Hook useCallback has an unnecessary dependency: 'type'. Either exclude it or remove the dependency array
);

const currentColumns = useMemo(() => {
Expand Down Expand Up @@ -892,6 +892,7 @@
}

const onSortPress = (column: SearchColumnType, order: SortOrder) => {
clearSelectedTransactions();
const newQuery = buildSearchQueryString({...queryJSON, sortBy: column, sortOrder: order});
onSortPressedCallback?.();
navigation.setParams({q: newQuery});
Expand Down
Loading