From 65e665cf2cf916568a8bf9222f4c3886ef91fdc3 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Thu, 16 Jun 2022 11:07:41 +0500 Subject: [PATCH] fix nullref exception at MonitoringColumn.jsx --- src/pages/Telemetry/TelemetryView/MonitoringColumn.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Telemetry/TelemetryView/MonitoringColumn.jsx b/src/pages/Telemetry/TelemetryView/MonitoringColumn.jsx index 39f500d..b01e274 100755 --- a/src/pages/Telemetry/TelemetryView/MonitoringColumn.jsx +++ b/src/pages/Telemetry/TelemetryView/MonitoringColumn.jsx @@ -10,7 +10,7 @@ const GetLimitShape = (flowChartData, points, accessor) => { const min = [], max = [] for (const point of points) { - const program = flowChartData.find(v => v.depthStart < point.depth && point.depth < v.depthEnd) + const program = flowChartData?.find(v => v.depthStart < point.depth && point.depth < v.depthEnd) if (!program) continue min.push({ x: program[`${accessor}Min`], y: new Date(point.y), label: point.label })