Skip to content

Commit

Permalink
build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
jerairrest committed Jul 20, 2017
1 parent fc5c640 commit e37ea56
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion dist/react-chartjs-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -3196,7 +3196,10 @@ var ChartComponent = function (_React$Component) {

var node = this.element;
var data = this.memoizeDataProps();
options.legend = legend;

if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
options.legend = legend;
}

this.chart_instance = new _chart2.default(node, {
type: type,
Expand Down
2 changes: 1 addition & 1 deletion dist/react-chartjs-2.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ var ChartComponent = function (_React$Component) {

var node = this.element;
var data = this.memoizeDataProps();
options.legend = legend;

if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
options.legend = legend;
}

this.chart_instance = new _chart2.default(node, {
type: type,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-chartjs-2",
"version": "2.5.2",
"version": "2.5.3",
"description": "react-chartjs-2",
"main": "lib/index.js",
"author": "Goran Udosic",
Expand Down

0 comments on commit e37ea56

Please sign in to comment.