diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue index 6f84e137e4..0b8b21e6e4 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/LabelSelector.vue @@ -443,6 +443,9 @@ const defaultPlaceholder = computed(() => { watch( () => allFields.value, () => { + if (!showProperty('showFields')) { + return + } let result = [] state.labelForm.showFields?.forEach(field => { if (allFields.value?.map(i => i.value).includes(field)) { diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue index a422617311..59c75a106d 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/TooltipSelector.vue @@ -412,6 +412,9 @@ const defaultPlaceholder = computed(() => { watch( () => allFields.value, () => { + if (!showProperty('showFields')) { + return + } let result = [] state.tooltipForm.showFields?.forEach(field => { if (allFields.value?.map(i => i.value).includes(field)) {