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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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
- }) : null;
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", {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.628",
4
+ "version": "2.4.629",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {