Spaces:
Build error
Build error
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(
|
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);
|