From 02ca7edea1c7191f53990cdcfe10b91ff93b83cb Mon Sep 17 00:00:00 2001 From: KharchenkoVV Date: Tue, 25 May 2021 14:20:58 +0500 Subject: [PATCH] =?UTF-8?q?CF2-4:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=20=D0=B7=D0=B0=D0=BF=D1=80=D0=B0=D1=88=D0=B8=D0=B2=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=D0=BE=D0=B3=D0=BE=20=D0=B8=D0=BD=D1=82=D0=B5=D1=80?= =?UTF-8?q?=D0=B2=D0=B0=D0=BB=D0=B0=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=B3=D1=80=D0=B0=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D0=BE=D0=B2=20=D0=BC=D0=BE=D0=BD=D0=B8=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/TelemetryView.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pages/TelemetryView.jsx b/src/pages/TelemetryView.jsx index 5e6e321..a91d627 100644 --- a/src/pages/TelemetryView.jsx +++ b/src/pages/TelemetryView.jsx @@ -181,6 +181,13 @@ export default function TelemetryView(props) { } }, [id]); + useEffect(() => { + if(chartInterval) + DataService.getData(id, null, chartInterval) + .then(handleReceiveDataSaub) + .catch(error => console.error(error)) + }, [chartInterval]); + const colSpan = 24 / (paramsGroups.length) return (