Skip to content

Commit

Permalink
32272 Search request display issues
Browse files Browse the repository at this point in the history
- Fix reset sorting rule
  • Loading branch information
johnphan96 committed Nov 15, 2023
1 parent 06e25c3 commit 7a02506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common-ui/lib/list-page/QueryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ export function QueryPage<TData extends KitsuResource>({
localStorageLastUsedSortKey,
defaultSort ?? DEFAULT_SORT
);
// const [sortingRules, setSortingRules] = useState(defaultSort ?? DEFAULT_SORT);

// The pagination size.
const [pageSize, setPageSize] = useState<number>(
Expand Down Expand Up @@ -691,6 +690,7 @@ export function QueryPage<TData extends KitsuResource>({
setSubmittedQueryBuilderTree(defaultQueryTree());
setQueryBuilderTree(defaultQueryTree());
setLocalStorageQueryTree(defaultJsonTree);
setSortingRules(defaultSort ?? DEFAULT_SORT);
setError(undefined);
setPageOffset(0);
}, []);
Expand Down

0 comments on commit 7a02506

Please sign in to comment.