Skip to content
Snippets Groups Projects
Commit 83762620 authored by benjamin's avatar benjamin
Browse files

chartkit - fallback if no format settings are set

parent 7c5a733a
Branches
No related tags found
No related merge requests found
......@@ -538,6 +538,9 @@
this.getCanvasStyle = () => {
const formatSettings = this.settings.format;
if (!formatSettings) {
return {};
}
return {
backgroundColor: formatSettings.backgroundColor,
padding: formatSettings.padding.outer,
......@@ -547,6 +550,9 @@
this.getContainerStyle = () => {
const formatSettings = this.settings.format;
if (!formatSettings) {
return {};
}
return {
height: formatSettings.height,
width: formatSettings.width,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment