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 ada80cb20d..46f2d93c15 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,8 @@ const changeColorOption = (option?) => { } } const resetCustomColor = () => { - const { type } = props.chart const { basicStyleForm } = state.value - - if (type.includes('map')) { + if (props.chart?.type?.includes('map')) { changeColorOption() } else { basicStyleForm[seriesColorName.value] = []