mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix: 修复部分联动报错问题 (#17190)
This commit is contained in:
@@ -227,10 +227,12 @@ public class ChartDataManage {
|
||||
// 联动条件
|
||||
if (ObjectUtils.isNotEmpty(chartExtRequest.getLinkageFilters())) {
|
||||
for (ChartExtFilterDTO linkageFilter : chartExtRequest.getLinkageFilters()) {
|
||||
if (3 == linkageFilter.getFilterType()) {
|
||||
customLinkageFilter = linkageFilter.getCustomFilter();
|
||||
} else {
|
||||
filters.add(linkageFilter);
|
||||
if(linkageFilter != null){
|
||||
if (3 == linkageFilter.getFilterType()) {
|
||||
customLinkageFilter = linkageFilter.getCustomFilter();
|
||||
} else {
|
||||
filters.add(linkageFilter);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ const linkageChange = item => {
|
||||
let checkResult = false
|
||||
if (item.linkageFilters && item.linkageFilters.length > 0) {
|
||||
item.linkageFilters.forEach(linkage => {
|
||||
if (element.value.id === linkage.sourceViewId) {
|
||||
if (element.value.id === linkage?.sourceViewId) {
|
||||
checkResult = true
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user