Skip to content

Commit

Permalink
👕 remove unnecessary const
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount committed May 7, 2021
1 parent da9d277 commit 9d95f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/charts/BarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export default {
let datasets = this.datasets
datasets.map(d => {
d.backgroundColor = context => {
const chart = context.chart;
const { ctx, chartArea } = chart;
const { ctx, chartArea } = context.chart;
if (!chartArea) return null;
return transparentGradientBar(ctx, chartArea, d.borderColor, this.horizontal);
}
Expand Down
3 changes: 1 addition & 2 deletions src/charts/LineChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ export default {
datasets.map(d => {
// gradient for background
d.backgroundColor = context => {
const chart = context.chart;
const { ctx, chartArea } = chart;
const { ctx, chartArea } = context.chart;
if (!chartArea) return null;
return transparentGradientLine(ctx, chartArea, d.borderColor);
};
Expand Down

0 comments on commit 9d95f55

Please sign in to comment.