Skip to content

Commit

Permalink
fix: Fix assignment of empty data labels
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwondercorn committed Jan 3, 2022
1 parent 571f1c5 commit 027256e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/components/c3-chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class C3Component extends Component {
// else use passed data argument
if (!isSourcePresent) {
dataObject.columns = [];
dataObject.empty == { label: { text: 'No Data' } };
dataObject.empty = { label: { text: 'No Data' } };
this.config.data = dataObject;
} else this.config.data = this.data;
}
Expand Down

0 comments on commit 027256e

Please sign in to comment.