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] = []