From ed070f34aaf62aa4414d2cd3a21352e7de05b105 Mon Sep 17 00:00:00 2001 From: Kai Nguyen Date: Thu, 14 Dec 2023 13:05:18 +0700 Subject: [PATCH] fix prevous dashboard button --- dashboard/src/components/Dashboard/Chart.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dashboard/src/components/Dashboard/Chart.jsx b/dashboard/src/components/Dashboard/Chart.jsx index 4c1427b..e256fc9 100644 --- a/dashboard/src/components/Dashboard/Chart.jsx +++ b/dashboard/src/components/Dashboard/Chart.jsx @@ -238,9 +238,7 @@ function Chart() { console.log(`Fetch... ${import.meta.env.VITE_API_URL}`); let response = await Axios.get( - `analytics?type=${pollutantType}&from=${queryDate.from}&to=${ - queryDate.to - }` + `analytics?type=${pollutantType}&from=${queryDate.from}&to=${queryDate.to}` ); const labels = response.data.map((x) => { @@ -338,7 +336,7 @@ function Chart() {
- @@ -362,7 +360,7 @@ function Chart() {
- +