khronoz commited on
Commit
73a5bd8
·
1 Parent(s): 7873c88

Increase timeout for search

Browse files
frontend/app/components/ui/search/useSearch.tsx CHANGED
@@ -33,7 +33,7 @@ const useSearch = (): UseSearchResult => {
33
  return;
34
  }
35
  const response = await fetch(`${search_api}?query=${query}`, {
36
- signal: AbortSignal.timeout(10000), // Abort the request if it takes longer than 10 seconds
37
  });
38
  const data = await response.json();
39
  setSearchResults(data);
 
33
  return;
34
  }
35
  const response = await fetch(`${search_api}?query=${query}`, {
36
+ signal: AbortSignal.timeout(60000), // Abort the request if it takes longer than 60 seconds
37
  });
38
  const data = await response.json();
39
  setSearchResults(data);