Merge pull request #13067 from dataease/pr@dev-v2@chart-t-heatmap-fix

fix(图表): 修复热力图缺少颜色字段时,图表显示报错的问题
This commit is contained in:
jianneng-fit2cloud 2024-11-01 18:14:10 +08:00 committed by GitHub
commit cf86f3e9ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,7 +627,7 @@ const checkFieldIsAllowEmpty = (allField?) => {
if (
!value['allowEmpty'] &&
value['limit'] &&
view.value?.[key]?.length < parseInt(value['limit'])
(!view.value?.[key] || view.value?.[key]?.length < parseInt(value['limit']))
) {
showEmpty.value = true
return false