diff --git a/pages/search.tsx b/pages/search.tsx index 465e044..c32a1ed 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,6 +24,7 @@ export default function SearchPage(props: SearchPageProps) { const { toast } = useToast(); const fetchSearchAPI = (param: string): Promise => { + setIsLoading(true) return axios.get(`/api/search/${param}`).then((response) => response.data); };