forked from ddrilling/asb_cloud_front
Merge branch 'dev' into feature/CombinedWellEditor
This commit is contained in:
commit
6a0601f39a
@ -181,12 +181,22 @@ export default function TelemetryView({idWell}) {
|
||||
|
||||
const handleDataSaub = (data) => {
|
||||
if (data) {
|
||||
data.forEach((_, idx) => {
|
||||
if (data[idx].rotorSpeed < 1)
|
||||
data[idx].rotorSpeed = 0;
|
||||
data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
|
||||
})
|
||||
setDataSaub(data)
|
||||
}
|
||||
}
|
||||
|
||||
const handleDataSpin = (data) => {
|
||||
if (data) {
|
||||
data.forEach((_, idx) => {
|
||||
if (data[idx].rotorSpeed < 1)
|
||||
data[idx].rotorSpeed = 0;
|
||||
data[idx].blockSpeed = Math.abs(data[idx].blockSpeed)
|
||||
})
|
||||
setDataSpin(data)
|
||||
}
|
||||
}
|
||||
@ -239,7 +249,8 @@ export default function TelemetryView({idWell}) {
|
||||
lineGroup={group}
|
||||
interval={chartInterval}
|
||||
showBorder={getIndexOfDrillingBy(dataSaub) === index}/>
|
||||
</GridItem>)}
|
||||
</GridItem>
|
||||
)}
|
||||
|
||||
<GridItem col='2' row='3' colSpan='7'>
|
||||
<ActiveMessagesOnline idWell={idWell}/>
|
||||
|
Loading…
Reference in New Issue
Block a user