diff --git a/core/core-frontend/src/views/chart/components/editor/drag-item/components/CustomSortEdit.vue b/core/core-frontend/src/views/chart/components/editor/drag-item/components/CustomSortEdit.vue index 47570e3455..416eee99e6 100644 --- a/core/core-frontend/src/views/chart/components/editor/drag-item/components/CustomSortEdit.vue +++ b/core/core-frontend/src/views/chart/components/editor/drag-item/components/CustomSortEdit.vue @@ -70,9 +70,11 @@ const init = () => { }) strArr.unshift(...tmp) } - state.sortList = strArr.map(ele => { - return transStr2Obj(ele) - }) + state.sortList = strArr + .filter(ele => ele?.trim()) + .map(ele => { + return transStr2Obj(ele) + }) onUpdate() loading.value = false })