victory-pie
Advanced tools
Comparing version 33.0.1 to 33.0.2
@@ -10,3 +10,3 @@ import _isNil from "lodash/isNil"; | ||
var checkForValidText = function (text) { | ||
if (text === undefined || text === null) { | ||
if (text === undefined || text === null || _isFunction(text)) { | ||
return text; | ||
@@ -90,3 +90,3 @@ } else { | ||
} else { | ||
text = _isFunction(props.labels) ? props.labels(datum) : datum.xName || datum._x; | ||
text = _isFunction(props.labels) ? props.labels : datum.xName || datum._x; | ||
} | ||
@@ -93,0 +93,0 @@ |
@@ -27,3 +27,3 @@ "use strict"; | ||
var checkForValidText = function (text) { | ||
if (text === undefined || text === null) { | ||
if (text === undefined || text === null || (0, _isFunction2.default)(text)) { | ||
return text; | ||
@@ -113,3 +113,3 @@ } else { | ||
} else { | ||
text = (0, _isFunction2.default)(props.labels) ? props.labels(datum) : datum.xName || datum._x; | ||
text = (0, _isFunction2.default)(props.labels) ? props.labels : datum.xName || datum._x; | ||
} | ||
@@ -116,0 +116,0 @@ |
{ | ||
"name": "victory-pie", | ||
"version": "33.0.1", | ||
"version": "33.0.2", | ||
"description": "Pie Component for Victory", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,3 +8,3 @@ /*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 45, 135, 180, 225, 315] }]*/ | ||
const checkForValidText = (text) => { | ||
if (text === undefined || text === null) { | ||
if (text === undefined || text === null || isFunction(text)) { | ||
return text; | ||
@@ -83,3 +83,3 @@ } else { | ||
} else { | ||
text = isFunction(props.labels) ? props.labels(datum) : datum.xName || datum._x; | ||
text = isFunction(props.labels) ? props.labels : datum.xName || datum._x; | ||
} | ||
@@ -86,0 +86,0 @@ return checkForValidText(text); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1305340