From eee22ee4ff030ff520ebe666f4ab67b80d813314 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Fri, 28 May 2021 14:33:57 +0500 Subject: [PATCH] =?UTF-8?q?fix.=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20?= =?UTF-8?q?=D1=83=20=D1=8D=D1=84=D1=84=D0=B5=D0=BA=D1=82=D0=B0=20(=D0=B2?= =?UTF-8?q?=D1=8B=D0=B4=D0=B0=D0=B2=D0=B0=D0=BB=20warning)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/TelemetryView.jsx | 2 +- src/pages/Wells.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/TelemetryView.jsx b/src/pages/TelemetryView.jsx index 96e6890..6b10633 100644 --- a/src/pages/TelemetryView.jsx +++ b/src/pages/TelemetryView.jsx @@ -230,7 +230,7 @@ export default function TelemetryView(props) { DataService.getData(id, null, chartInterval) .then(handleReceiveDataSaub) .catch(error => console.error(error)) - }, [chartInterval]); + }, [id, chartInterval]); const colSpan = 24 / (paramsGroups.length) diff --git a/src/pages/Wells.jsx b/src/pages/Wells.jsx index 84f69cb..6ffef25 100644 --- a/src/pages/Wells.jsx +++ b/src/pages/Wells.jsx @@ -63,7 +63,7 @@ export default function Wells(props){ const [loader, setLoader] = useState(false) const history = useHistory() - let updateWellsList = async () => { + const updateWellsList = async () => { setLoader(true) try{ let newWells = (await WellService.getWells()).map(w =>{return {key:w.id, ...w}}) @@ -78,7 +78,7 @@ export default function Wells(props){ setLoader(false) } - useEffect(()=>{updateWellsList()}, []) + useEffect(()=>updateWellsList()) return(<>

Скважины