Skip to content

Commit

Permalink
Force time_grain to day
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Dec 6, 2022
1 parent 5dac6ab commit 0f92180
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/chart/mat.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ const MeasurementAggregationToolkit = ({ testNames }) => {
}, [])

const shouldFetchData = router.pathname !== router.asPath
const query = router.query
// THIS IS TEMPORARY - in the next iteration users will be
// able to set time_grain themselves
const query = {...router.query, time_grain: 'day'}

const { data, error, isValidating } = useSWR(
() => shouldFetchData ? [query] : null,
Expand Down

1 comment on commit 0f92180

@vercel
Copy link

@vercel vercel bot commented on 0f92180 Dec 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

explorer – ./

explorer-one.vercel.app
explorer-ooni1.vercel.app
explorer-git-master-ooni1.vercel.app

Please sign in to comment.