From 26abf3a8349fa599a263e5849f4d0298be7b7042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Tue, 1 Jun 2021 14:26:15 +0500 Subject: [PATCH] fix cyclyc update --- src/pages/Wells.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Wells.jsx b/src/pages/Wells.jsx index 0f5b97e..333344d 100644 --- a/src/pages/Wells.jsx +++ b/src/pages/Wells.jsx @@ -37,17 +37,17 @@ export default function Wells(props){ setLoader(true) try{ let newWells = (await WellService.getWells()).map(w =>{return {key:w.id, ...w}}) - console.log(Wells.wellsTree) + console.log(newWells) setWells( newWells ) } catch(e){ notify('Не удалось загрузить список скважин', 'error') - console.error(`${e.message}`); + console.error(`${e}`); } setLoader(false) } - useEffect(()=>updateWellsList()) + useEffect(()=>updateWellsList(), []) return(<>

Скважины