From c0c8fff72e4b8683c59deb23fa6220fb49c1e13b Mon Sep 17 00:00:00 2001 From: Andrey Dolgolev Date: Wed, 22 Dec 2021 19:02:12 +0200 Subject: [PATCH] Add fix. --- frontend/pages/dashboard/[dashboardId].js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/pages/dashboard/[dashboardId].js b/frontend/pages/dashboard/[dashboardId].js index 70e8a81e..05c9e230 100644 --- a/frontend/pages/dashboard/[dashboardId].js +++ b/frontend/pages/dashboard/[dashboardId].js @@ -35,7 +35,7 @@ timeMap[MINUTE_KEY] = "day"; const Analytics = () => { const { toggleAlert } = useContext(OverlayContext); - const [timeRange, setTimeRange] = useState(timeMap[MINUTE_KEY]); + const [timeRange, setTimeRange] = useState(timeMap[DAY_KEY]); const router = useRouter(); const overlay = useContext(OverlayContext); const { dashboardId } = router.params; @@ -127,7 +127,7 @@ const Analytics = () => { /> {