Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/giant-ways-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperdx/app": patch
---

fix issue with query timeout on the search page
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jest.mock('@/api', () => ({
useMe: () => ({
data: {
team: {
queryTimeout: 30000,
queryTimeout: 30,
},
},
}),
Expand Down
3 changes: 2 additions & 1 deletion packages/app/src/hooks/useOffsetPaginatedQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ const queryFn: QueryFunction<TQueryFnData, TQueryKey, TPageParam> = async ({
// Create abort signal from timeout if provided
const abortController = queryTimeout ? new AbortController() : undefined;
if (abortController && queryTimeout) {
setTimeout(() => abortController.abort(), queryTimeout);
// Query timeout is in seconds, so we need to convert it to milliseconds
setTimeout(() => abortController.abort(), queryTimeout * 1000);
}

const resultSet =
Expand Down
Loading