We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3452f commit 71c9c76Copy full SHA for 71c9c76
frontend/zicdding-class.com/src/views/class-list/ui/use-search-class.ts
@@ -8,7 +8,7 @@ export function useSearchClass() {
8
9
const [localSearchValue, setLocalSearchValue] = useState('');
10
11
- const sortType = (searchParams.get('sortType') as SortType) ?? 'popular';
+ const sortType = searchParams.get('sortType') ?? 'popular';
12
const searchValue = searchParams.get('search') ?? '';
13
14
const onSearchSubmit = (e: React.FormEvent<HTMLFormElement>) => {
0 commit comments