Skip to content

Commit 71c9c76

Browse files
committed
feat: sortType 타입 강제 제거
1 parent 2e3452f commit 71c9c76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/zicdding-class.com/src/views/class-list/ui/use-search-class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function useSearchClass() {
88

99
const [localSearchValue, setLocalSearchValue] = useState('');
1010

11-
const sortType = (searchParams.get('sortType') as SortType) ?? 'popular';
11+
const sortType = searchParams.get('sortType') ?? 'popular';
1212
const searchValue = searchParams.get('search') ?? '';
1313

1414
const onSearchSubmit = (e: React.FormEvent<HTMLFormElement>) => {

0 commit comments

Comments
 (0)