Skip to content

Commit

Permalink
File Search: change default sort to createdAt instead of importedAt (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan authored Oct 8, 2024
1 parent 0d64c98 commit 6d1b43a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/utilities/FileSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const FileDetails = React.memo(({ fileId }: { fileId: number }) => {
});

const FileSearch = () => {
const [sortCriteria, setSortCriteria] = useState(-FileSortCriteriaEnum.ImportedAt);
const [sortCriteria, setSortCriteria] = useState(-FileSortCriteriaEnum.CreatedAt);
const [search, setSearch] = useState('');
const [debouncedSearch] = useDebounceValue(search, 250);
const filesQuery = useFilesInfiniteQuery({
Expand Down

0 comments on commit 6d1b43a

Please sign in to comment.