Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Chore: added .prettierignore and executed linter (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn authored Sep 11, 2020
1 parent b23538c commit c5ecea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.DS_Store
4 changes: 2 additions & 2 deletions src/main/js/helpers/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c5ecea9

Please sign in to comment.