forked from github/dataease
fix(查询组件): 筛选组件的查询条件配置一个和图表所使用的不同的数据集时,保存完仪表板再进入会丢失 #11048
This commit is contained in:
parent
3455a37138
commit
9566fd5417
@ -314,12 +314,7 @@ const updateQueryCriteria = () => {
|
||||
![0, 2, 5].includes(+ele.displayType)
|
||||
)
|
||||
return
|
||||
const checkedFields = []
|
||||
datasetFieldList.value.forEach(itx => {
|
||||
if (itx.tableId === ele.dataset.id) {
|
||||
checkedFields.push(itx.id)
|
||||
}
|
||||
})
|
||||
const checkedFields = datasetFieldList.value.map(itx => itx.id)
|
||||
ele.checkedFields.forEach(itx => {
|
||||
if (!checkedFields.includes(itx)) {
|
||||
ele.checkedFieldsMap[itx] = ''
|
||||
|
Loading…
Reference in New Issue
Block a user