Skip to content

Commit

Permalink
Only require customLegendElement (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieTheWagner authored Jul 17, 2020
1 parent 3757bb3 commit cca9568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/ember-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default Component.extend({
chart.update(0);
}

if (options.legendCallback && this.customLegendElement) {
if (this.customLegendElement) {
this.customLegendElement.innerHTML = chart.generateLegend();
}
}
Expand Down

0 comments on commit cca9568

Please sign in to comment.