fix nullref exception at MonitoringColumn.jsx

This commit is contained in:
ngfrolov 2022-06-16 11:07:41 +05:00
parent 748ccea183
commit 65e665cf2c

View File

@ -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 })