diff --git a/frontend/src/views/chart/components/component-style/MarginSelector.vue b/frontend/src/views/chart/components/component-style/MarginSelector.vue index 41ebf2aa2a..4bdb5ef16d 100644 --- a/frontend/src/views/chart/components/component-style/MarginSelector.vue +++ b/frontend/src/views/chart/components/component-style/MarginSelector.vue @@ -117,7 +117,11 @@ export default { } if (customStyle.margin) { this.marginForm = customStyle.margin + } else { + this.marginForm = JSON.parse(JSON.stringify(DEFAULT_MARGIN_STYLE)) } + } else { + this.marginForm = JSON.parse(JSON.stringify(DEFAULT_MARGIN_STYLE)) } },