diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..5509140f2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.DS_Store diff --git a/src/main/js/helpers/legend.js b/src/main/js/helpers/legend.js index 4b2eb262e..0a8efe464 100644 --- a/src/main/js/helpers/legend.js +++ b/src/main/js/helpers/legend.js @@ -408,14 +408,14 @@ const getDefaultLegendOptions = (graphConfig, dataTarget) => { ); legendOptions.style = getDefaultValue(legendOptions.style, {}); - if (legendOptions.style.strokeDashArray) { legendOptions.style = { strokeDashArray: getStrokeDashArray(legendOptions.style) }; } else { if (dataTarget.showShapes === false) { - legendOptions.style.strokeDashArray = dataTarget.style.strokeDashArray; + legendOptions.style.strokeDashArray = + dataTarget.style.strokeDashArray; } else { legendOptions.style = { strokeDashArray: getStrokeDashArray(legendOptions.style)