@ballistix.digital/react-components 0.5.4 → 0.5.5

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.
package/dist/index.js CHANGED
@@ -140,11 +140,13 @@ var toClassName = function () {
140
140
  }
141
141
  return values.filter(Boolean).join(' ');
142
142
  };
143
- var fromSelectMenuOptionToStringValue = function (options) {
144
- if (options === null || options === void 0 ? void 0 : options.length) {
145
- return options === null || options === void 0 ? void 0 : options.map(function (option) { return option === null || option === void 0 ? void 0 : option.value; });
143
+ var fromSelectMenuOptionToStringValue = function (value) {
144
+ if (value === null)
145
+ return null;
146
+ if (lodash.isArray(value)) {
147
+ return lodash.map(value, 'value');
146
148
  }
147
- return options === null || options === void 0 ? void 0 : options.value;
149
+ return value === null || value === void 0 ? void 0 : value.value;
148
150
  };
149
151
 
150
152
  var deepCopyObject = function (object) {