sag_components 1.0.821 → 1.0.823

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.
@@ -89,7 +89,11 @@ const DropdownMultiNew = _ref => {
89
89
  setIsFocused(true);
90
90
  setInputValue(e.target.value);
91
91
  };
92
- const isDropdowned = option => selectedOptions.some(selectedOption => selectedOption.value === option.value);
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);
95
+ return result;
96
+ };
93
97
  const handleLabelClick = () => {
94
98
  if (disabled) return;
95
99
  setIsFocused(true);
@@ -74,7 +74,11 @@ const DropdownSingleNew = _ref => {
74
74
  inputRef === null || inputRef === void 0 ? void 0 : (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
75
75
  }
76
76
  };
77
- const isDropdowned = option => selectedOptions.some(selectedOption => selectedOption.value === option.value);
77
+ const isDropdowned = option => {
78
+ if (!selectedOptions || (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) === 0) return false;
79
+ const result = selectedOptions.some(selectedOption => selectedOption.value === option.value);
80
+ return result;
81
+ };
78
82
  const handleLabelClick = () => {
79
83
  if (disabled) return;
80
84
  setIsFocused(true);
@@ -426,7 +426,6 @@ const FilterPanel = props => {
426
426
  }));
427
427
  break;
428
428
  case 'periodpicker':
429
- console.log('periodPickerSelectedValue', item.periodPickerSelectedValue);
430
429
  content = /*#__PURE__*/_react.default.createElement(_FilterPanel.PeriodPickerContainer, {
431
430
  className: "PeriodPickerContainer"
432
431
  }, /*#__PURE__*/_react.default.createElement(_DropdownNew.DropdownNew, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.821",
3
+ "version": "1.0.823",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {