fix(图表): 修复历史折线图开启条件样式报错的问题

This commit is contained in:
jianneng-fit2cloud 2024-11-22 09:36:22 +08:00
parent 1ec0d46cf2
commit 7564754b13

View File

@ -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,