react-select-search
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -10,3 +10,3 @@ "use strict"; | ||
return value.map(function (singleOption) { | ||
return singleOption.name; | ||
return singleOption && singleOption.name; | ||
}).join(', '); | ||
@@ -13,0 +13,0 @@ } |
@@ -213,2 +213,3 @@ "use strict"; | ||
_react["default"].createElement("button", _extends({ | ||
type: "button", | ||
className: className | ||
@@ -215,0 +216,0 @@ }, domProps), option.name) |
export default function getDisplayValue(value) { | ||
if (value && typeof value === 'object') { | ||
if (Array.isArray(value)) { | ||
return value.map(singleOption => singleOption.name).join(', '); | ||
return value.map(singleOption => singleOption && singleOption.name).join(', '); | ||
} | ||
@@ -6,0 +6,0 @@ |
@@ -189,2 +189,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
React.createElement("button", _extends({ | ||
type: "button", | ||
className: className | ||
@@ -191,0 +192,0 @@ }, domProps), option.name), |
{ | ||
"name": "react-select-search", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Lightweight select component for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/esm/index.js", |
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
82252
1668