From 5c016654fc47598f14e80788f0dbb7b58cbe8439 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=98=89=E8=B1=AA?= <42510293+ziyujiahao@users.noreply.github.com> Date: Wed, 11 Mar 2026 18:26:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=87=8D=E7=BD=AE=E7=BB=84=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=A4=B1=E6=95=88=E9=97=AE=E9=A2=98=20(#18065)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../editor/editor-style/components/CustomColorStyleSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue index e3fc846c1d..1c17834f03 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/CustomColorStyleSelect.vue @@ -234,10 +234,10 @@ const changeColorOption = (option?) => { } } const resetCustomColor = () => { - const { type } = props.chart + const type = props.chart?.type const { basicStyleForm } = state.value - if (type.includes('map')) { + if (type?.includes('map')) { changeColorOption() } else { basicStyleForm[seriesColorName.value] = []