From 0f9218008573a7013d25606e30994ca38af54f6b Mon Sep 17 00:00:00 2001 From: Maja Komel Date: Tue, 6 Dec 2022 12:21:13 +0100 Subject: [PATCH] Force time_grain to day --- pages/chart/mat.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/chart/mat.js b/pages/chart/mat.js index ff342d54d..a680b4e02 100644 --- a/pages/chart/mat.js +++ b/pages/chart/mat.js @@ -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,