forked from ddrilling/asb_cloud_front
Исправлена ошибка при получении некорректных данных ROP
This commit is contained in:
parent
ce0f976138
commit
56e873323b
@ -370,12 +370,16 @@ export default function TelemetryView() {
|
||||
'Задание состояния скважины'
|
||||
), [idWell, wellData])
|
||||
|
||||
const columnAdditionalLabels = {
|
||||
1: rop && [
|
||||
`ROP сред: ${rop.ropAverage.toFixed(2)} м/ч`,
|
||||
`ROP макс: ${rop.ropMax.toFixed(2)} м/ч`
|
||||
]
|
||||
}
|
||||
const columnAdditionalLabels = useMemo(() => {
|
||||
if (!rop) return {}
|
||||
const { ropAverage, ropMax } = rop
|
||||
return {
|
||||
1: rop && [
|
||||
`ROP сред: ${ropAverage && ropAverage.toFixed?.(2) || '---'} м/ч`,
|
||||
`ROP макс: ${ropMax && ropMax.toFixed?.(2) || '---'} м/ч`
|
||||
]
|
||||
}
|
||||
}, [rop])
|
||||
|
||||
return (
|
||||
<LoaderPortal show={showLoader}>
|
||||
|
Loading…
Reference in New Issue
Block a user