Merge pull request #11065 from dataease/pr@dev-v2_st

fix(查询组件): 筛选组件的查询条件配置一个和图表所使用的不同的数据集时,保存完仪表板再进入会丢失 #11048
This commit is contained in:
dataeaseShu 2024-07-22 10:58:35 +08:00 committed by GitHub
commit 76042b7c8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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] = ''