Skip to content

Commit

Permalink
remove trailing slash from query hook
Browse files Browse the repository at this point in the history
  • Loading branch information
thatmattlove committed Mar 3, 2024
1 parent 20ae02e commit 016cfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperglass/ui/hooks/use-lg-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function useLGQuery(
);

return useQuery<QueryResponse, Response | QueryResponse | Error, QueryResponse, LGQueryKey>({
queryKey: ['/api/query/', query],
queryKey: ['/api/query', query],
queryFn: runQuery,
// Invalidate react-query's cache just shy of the configured cache timeout.
cacheTime: cache.timeout * 1000 * 0.95,
Expand Down

0 comments on commit 016cfd7

Please sign in to comment.