Merge pull request #11005 from dataease/pr@dev-v2@fix_bar_assist_line

fix(图表): 修复条形图辅助线导致渲染失败
This commit is contained in:
wisonic-s 2024-07-17 17:42:32 +08:00 committed by GitHub
commit e8ad15fc22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -751,7 +751,7 @@ export function getAnalyseHorizontal(chart: Chart) {
dynamicLineFields?.includes(item.fieldId) &&
!!_.find(quotaFields, d => d.id === item.fieldId)
)
const lines = fixedLines.concat(dynamicLines)
const lines = fixedLines.concat(dynamicLines || [])
lines.forEach(ele => {
const value = parseFloat(ele.value)