fix(查询组件): 数值区间搜索提示异常(索引越界)

This commit is contained in:
dataeaseShu 2024-10-21 18:18:47 +08:00
parent 2c14ed7e02
commit 574d8b86bd

View File

@ -185,7 +185,7 @@ const getResultNum = (
) => { ) => {
const valueS = firstLoad ? defaultNumValueStart : numValueStart const valueS = firstLoad ? defaultNumValueStart : numValueStart
const valueE = firstLoad ? defaultNumValueEnd : numValueEnd const valueE = firstLoad ? defaultNumValueEnd : numValueEnd
return [valueS || '', valueE || ''].filter(ele => ele !== '') return [valueS ?? '', valueE ?? ''].filter(ele => ele !== '')
} }
const getOperator = ( const getOperator = (