Merge pull request #13481 from dataease/pr@dev-v2@chart-linx-fix

fix(图表): 修复历史折线图开启条件样式报错的问题
This commit is contained in:
jianneng-fit2cloud 2024-11-22 09:38:22 +08:00 committed by GitHub
commit aecbf20c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,