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)
|
||||
.then(handleReceiveDataSaub)
|
||||
.catch(error => console.error(error))
|
||||
}, [chartInterval]);
|
||||
}, [id, chartInterval]);
|
||||
|
||||
const colSpan = 24 / (paramsGroups.length)
|
||||
|
||||
|
@ -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(<>
|
||||
<h2>Скважины</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user