diff --git a/src/pages/Telemetry/TelemetryView/index.jsx b/src/pages/Telemetry/TelemetryView/index.jsx index 2189da5..07768d9 100755 --- a/src/pages/Telemetry/TelemetryView/index.jsx +++ b/src/pages/Telemetry/TelemetryView/index.jsx @@ -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 (