intelicoreact 0.2.62 → 0.2.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -78,12 +78,12 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
78
78
|
if (!options) return null;
|
|
79
79
|
|
|
80
80
|
var moveOtherToEnd = function moveOtherToEnd(options) {
|
|
81
|
-
var otherIndex = options.findIndex(function (option) {
|
|
82
|
-
return option.value === 'other';
|
|
81
|
+
var otherIndex = options === null || options === void 0 ? void 0 : options.findIndex(function (option) {
|
|
82
|
+
return (option === null || option === void 0 ? void 0 : option.value) === 'other';
|
|
83
83
|
});
|
|
84
84
|
|
|
85
85
|
if (otherIndex > -1) {
|
|
86
|
-
var other = options.splice(otherIndex, 1);
|
|
86
|
+
var other = options === null || options === void 0 ? void 0 : options.splice(otherIndex, 1);
|
|
87
87
|
options.push.apply(options, (0, _toConsumableArray2.default)(other));
|
|
88
88
|
}
|
|
89
89
|
|