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 71c9c76 commit 83a9e07Copy full SHA for 83a9e07
frontend/zicdding-class.com/src/views/class-list/ui/use-search-class.ts
@@ -15,8 +15,10 @@ export function useSearchClass() {
15
e.preventDefault();
16
17
const formData = new FormData(e.target as HTMLFormElement);
18
- const _searchValue = formData.get('search') as string;
19
- onSearch(_searchValue);
+ const searchValue = formData.get('search');
+ if (typeof searchValue === 'string') {
20
+ onSearch(searchValue);
21
+ }
22
};
23
24
const onSearch = (searchValue: string) => {
0 commit comments