forked from ddrilling/asb_cloud_front
fix nullref exception at MonitoringColumn.jsx
This commit is contained in:
parent
748ccea183
commit
65e665cf2c
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user