diff --git a/core/core-frontend/src/views/chart/components/editor/index.vue b/core/core-frontend/src/views/chart/components/editor/index.vue index 71e7158945..9434c527fb 100644 --- a/core/core-frontend/src/views/chart/components/editor/index.vue +++ b/core/core-frontend/src/views/chart/components/editor/index.vue @@ -1394,7 +1394,7 @@ const drop = (ev: MouseEvent, type = 'xAxis') => { const obj = cloneDeep(arr[i]) state.moveId = obj.id as unknown as number view.value[type].push(obj) - const e = { newDraggableIndex: view.value.xAxis.length - 1 } + const e = { newDraggableIndex: view.value[type].length - 1 } if ('drillFields' === type) { addDrill(e) } else if (type === 'customFilter') {