sag_components 1.0.839 → 1.0.840

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.
@@ -90,8 +90,8 @@ const DropdownMultiNew = _ref => {
90
90
  setInputValue(e.target.value);
91
91
  };
92
92
  const isDropdowned = option => {
93
- if (!selectedOptions || (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) === 0) return false;
94
- const result = selectedOptions.some(selectedOption => selectedOption.value === option.value);
93
+ if (!selectedOptions || (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) === 0 || !Array.isArray(selectedOptions)) return false;
94
+ const result = selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.some(selectedOption => selectedOption.value === option.value);
95
95
  return result;
96
96
  };
97
97
  const handleLabelClick = () => {
@@ -75,7 +75,7 @@ const DropdownSingleNew = _ref => {
75
75
  }
76
76
  };
77
77
  const isDropdowned = option => {
78
- if (!selectedOptions || (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) === 0) return false;
78
+ if (!selectedOptions || (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) === 0 || !Array.isArray(selectedOptions)) return false;
79
79
  const result = selectedOptions.some(selectedOption => selectedOption.value === option.value);
80
80
  return result;
81
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.839",
3
+ "version": "1.0.840",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {