@colijnit/catalog 255.1.15 → 255.1.16

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.
@@ -30,8 +30,8 @@
30
30
  function Version() {
31
31
  this.name = "@colijnit/catalog";
32
32
  this.description = "iOne Catalog module based on Angular 12";
33
- this.symVer = "255.1.15";
34
- this.publishDate = "29-11-2024 17:08:34";
33
+ this.symVer = "255.1.16";
34
+ this.publishDate = "3-12-2024 09:51:00";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -4785,9 +4785,25 @@
4785
4785
  this.externalSourceViewModels.length = 0;
4786
4786
  if (!this.isStandalone) {
4787
4787
  this._catalogConnectorService.getAvailabeCatalogsForLoggedInUser().then(function (result) {
4788
+ var e_1, _a;
4788
4789
  if (result['validationResult']['success'] === true) {
4789
4790
  if (result['resultObject']['availableCatalogs']) {
4790
- _this.loadCatalogs(result['resultObject']['availableCatalogs']).then(function (result) { });
4791
+ var availableCatalogs = [];
4792
+ try {
4793
+ for (var _b = __values(result['resultObject']['availableCatalogs']), _c = _b.next(); !_c.done; _c = _b.next()) {
4794
+ var availableCatalog = _c.value;
4795
+ var instance = Object.assign(new catalogDefinition_bo.CatalogDefinition(), availableCatalog);
4796
+ availableCatalogs.push(instance);
4797
+ }
4798
+ }
4799
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4800
+ finally {
4801
+ try {
4802
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4803
+ }
4804
+ finally { if (e_1) throw e_1.error; }
4805
+ }
4806
+ _this.loadCatalogs(availableCatalogs).then(function (result) { });
4791
4807
  }
4792
4808
  if (result['resultObject']['unavailableCatalogs']) {
4793
4809
  _this.loadUnavailableCatalogs(result['resultObject']['unavailableCatalogs']);