forked from ddrilling/asb_cloud_front
fix. убрал зависимость у эффекта (выдавал warning)
This commit is contained in:
parent
eb92d5a0d7
commit
eee22ee4ff
@ -230,7 +230,7 @@ export default function TelemetryView(props) {
|
|||||||
DataService.getData(id, null, chartInterval)
|
DataService.getData(id, null, chartInterval)
|
||||||
.then(handleReceiveDataSaub)
|
.then(handleReceiveDataSaub)
|
||||||
.catch(error => console.error(error))
|
.catch(error => console.error(error))
|
||||||
}, [chartInterval]);
|
}, [id, chartInterval]);
|
||||||
|
|
||||||
const colSpan = 24 / (paramsGroups.length)
|
const colSpan = 24 / (paramsGroups.length)
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ export default function Wells(props){
|
|||||||
const [loader, setLoader] = useState(false)
|
const [loader, setLoader] = useState(false)
|
||||||
const history = useHistory()
|
const history = useHistory()
|
||||||
|
|
||||||
let updateWellsList = async () => {
|
const updateWellsList = async () => {
|
||||||
setLoader(true)
|
setLoader(true)
|
||||||
try{
|
try{
|
||||||
let newWells = (await WellService.getWells()).map(w =>{return {key:w.id, ...w}})
|
let newWells = (await WellService.getWells()).map(w =>{return {key:w.id, ...w}})
|
||||||
@ -78,7 +78,7 @@ export default function Wells(props){
|
|||||||
setLoader(false)
|
setLoader(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(()=>{updateWellsList()}, [])
|
useEffect(()=>updateWellsList())
|
||||||
|
|
||||||
return(<>
|
return(<>
|
||||||
<h2>Скважины</h2>
|
<h2>Скважины</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user