Skip to content

Commit e37ea56

Browse files
committed
build dist
1 parent fc5c640 commit e37ea56

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

dist/react-chartjs-2.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3196,7 +3196,10 @@ var ChartComponent = function (_React$Component) {
31963196

31973197
var node = this.element;
31983198
var data = this.memoizeDataProps();
3199-
options.legend = legend;
3199+
3200+
if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
3201+
options.legend = legend;
3202+
}
32003203

32013204
this.chart_instance = new _chart2.default(node, {
32023205
type: type,

dist/react-chartjs-2.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ var ChartComponent = function (_React$Component) {
298298

299299
var node = this.element;
300300
var data = this.memoizeDataProps();
301-
options.legend = legend;
301+
302+
if (typeof legend !== 'undefined' && !(0, _lodash2.default)(ChartComponent.defaultProps.legend, legend)) {
303+
options.legend = legend;
304+
}
302305

303306
this.chart_instance = new _chart2.default(node, {
304307
type: type,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chartjs-2",
3-
"version": "2.5.2",
3+
"version": "2.5.3",
44
"description": "react-chartjs-2",
55
"main": "lib/index.js",
66
"author": "Goran Udosic",

0 commit comments

Comments
 (0)