victory-voronoi-container
Advanced tools
Comparing version 34.3.5 to 34.3.6
@@ -210,3 +210,5 @@ import _pick from "lodash/pick"; | ||
var labelProps = this.getLabelProps(props, activePoints); | ||
return React.cloneElement(labelComponent, labelProps); | ||
var text = labelProps.text; | ||
var showLabel = Array.isArray(text) ? text.filter(Boolean).length : text; | ||
return showLabel ? React.cloneElement(labelComponent, labelProps) : null; | ||
} else { | ||
@@ -213,0 +215,0 @@ return null; |
@@ -226,3 +226,5 @@ "use strict"; | ||
var labelProps = this.getLabelProps(props, activePoints); | ||
return _react.default.cloneElement(labelComponent, labelProps); | ||
var text = labelProps.text; | ||
var showLabel = Array.isArray(text) ? text.filter(Boolean).length : text; | ||
return showLabel ? _react.default.cloneElement(labelComponent, labelProps) : null; | ||
} else { | ||
@@ -229,0 +231,0 @@ return null; |
{ | ||
"name": "victory-voronoi-container", | ||
"version": "34.3.5", | ||
"version": "34.3.6", | ||
"description": "Interactive Voronoi Mouseover Component for Victory", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"react-fast-compare": "^2.0.0", | ||
"victory-core": "^34.3.5", | ||
"victory-tooltip": "^34.3.5" | ||
"victory-core": "^34.3.6", | ||
"victory-tooltip": "^34.3.6" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -185,3 +185,5 @@ import PropTypes from "prop-types"; | ||
const labelProps = this.getLabelProps(props, activePoints); | ||
return React.cloneElement(labelComponent, labelProps); | ||
const { text } = labelProps; | ||
const showLabel = Array.isArray(text) ? text.filter(Boolean).length : text; | ||
return showLabel ? React.cloneElement(labelComponent, labelProps) : null; | ||
} else { | ||
@@ -188,0 +190,0 @@ return null; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1403515
8668
Updatedvictory-core@^34.3.6
Updatedvictory-tooltip@^34.3.6