arengibook 2.4.628 → 2.4.629
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39138,7 +39138,7 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39138
39138
|
}) : [];
|
|
39139
39139
|
var numericObjValue = Array.isArray(objValue) ? objValue.map(function (opt) {
|
|
39140
39140
|
return _objectSpread2(_objectSpread2({}, opt), {}, _defineProperty$b({}, optionValue, typeof opt[optionValue] === 'string' ? parseInt(opt[optionValue], 10) : opt[optionValue]));
|
|
39141
|
-
}) :
|
|
39141
|
+
}) : [];
|
|
39142
39142
|
useEffect(function () {
|
|
39143
39143
|
if (isOptionsArray) {
|
|
39144
39144
|
setLoadedOptions(options);
|
|
@@ -39340,7 +39340,7 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
|
|
|
39340
39340
|
}), name && /*#__PURE__*/React__default.createElement("input", {
|
|
39341
39341
|
type: "hidden",
|
|
39342
39342
|
name: name,
|
|
39343
|
-
value: selectedOptions.map(function (opt) {
|
|
39343
|
+
value: (Array.isArray(selectedOptions) ? selectedOptions : []).map(function (opt) {
|
|
39344
39344
|
return opt[optionValue];
|
|
39345
39345
|
}).join(',')
|
|
39346
39346
|
}), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
|