forked from github/dataease
fix(过滤组件): 数据大屏过滤组件确定按钮保存失败 #10291
This commit is contained in:
parent
5b006d56a0
commit
6f81240a75
@ -125,7 +125,8 @@ const getValueByDefaultValueCheckOrFirstLoad = (
|
|||||||
if (firstLoad && !selectValue?.length) {
|
if (firstLoad && !selectValue?.length) {
|
||||||
return defaultValueCheck ? defaultValue : multiple ? [] : ''
|
return defaultValueCheck ? defaultValue : multiple ? [] : ''
|
||||||
}
|
}
|
||||||
return selectValue || ''
|
|
||||||
|
return selectValue ? (Array.isArray(selectValue) ? selectValue : [selectValue]) : ''
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useFilter = (curComponentId: string, firstLoad = false) => {
|
export const useFilter = (curComponentId: string, firstLoad = false) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user