diff --git a/core/core-frontend/src/views/chart/components/js/util.ts b/core/core-frontend/src/views/chart/components/js/util.ts index ee73bdf6a8..380c686828 100644 --- a/core/core-frontend/src/views/chart/components/js/util.ts +++ b/core/core-frontend/src/views/chart/components/js/util.ts @@ -1080,8 +1080,8 @@ export function getLineConditions(chart) { const { threshold } = parseJson(chart.senior) const conditions = [] if (threshold.enable) { - threshold.lineThreshold.forEach(item => - item.conditions.forEach(c => + threshold.lineThreshold?.forEach(item => + item.conditions?.forEach(c => conditions.push({ fieldId: item.fieldId, term: c.term,