arengibook 2.4.640 → 2.4.641

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 +15 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39265,6 +39265,8 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
39265
39265
  exists = (_result2 = result) === null || _result2 === void 0 || (_result2 = _result2.options) === null || _result2 === void 0 ? void 0 : _result2.some(function (opt) {
39266
39266
  return opt[optionValue] === objValue[optionValue];
39267
39267
  });
39268
+ console.log("exists");
39269
+ console.log(exists);
39268
39270
  if (!exists) {
39269
39271
  setLoadedOptions(function (prev) {
39270
39272
  return [].concat(_toConsumableArray$7(prev), [objValue]);
@@ -39345,7 +39347,19 @@ var MultiSelectMetaAsync = function MultiSelectMetaAsync(_ref) {
39345
39347
  }, option[optionLabel]));
39346
39348
  };
39347
39349
  var selectedItemTemplate = function selectedItemTemplate(paramValue, index) {
39348
- var selectedOption = objValue;
39350
+ // const selectedOption = loadedOptions.find(opt => opt[optionValue] === paramValue);
39351
+ var selectedOption = objValue.find(function (opt) {
39352
+ return opt[optionValue] === paramValue;
39353
+ });
39354
+ console.log("ecoute de selectedOption");
39355
+ console.log(loadedOptions.find(function (opt) {
39356
+ return opt[optionValue] === paramValue;
39357
+ }));
39358
+ console.log(selectedOption);
39359
+ console.log(objValue);
39360
+ console.log(paramValue);
39361
+ console.log(selectedOptions);
39362
+ console.log(loadedOptions);
39349
39363
  if (!selectedOption) return null;
39350
39364
  // const isLastItem = index === selectedOptions.length - 1;
39351
39365
  var handleRemove = function handleRemove(e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.640",
4
+ "version": "2.4.641",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {