@colijnit/catalog 256.1.8 → 256.1.9

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 = "256.1.8";
34
- this.publishDate = "29-11-2024 16:24:27";
33
+ this.symVer = "256.1.9";
34
+ this.publishDate = "3-12-2024 09:26:27";
35
35
  }
36
36
  return Version;
37
37
  }());
@@ -4791,9 +4791,25 @@
4791
4791
  this.externalSourceViewModels.length = 0;
4792
4792
  if (!this.isStandalone) {
4793
4793
  this._catalogConnectorService.getAvailabeCatalogsForLoggedInUser().then(function (result) {
4794
+ var e_1, _a;
4794
4795
  if (result['validationResult']['success'] === true) {
4795
4796
  if (result['resultObject']['availableCatalogs']) {
4796
- _this.loadCatalogs(result['resultObject']['availableCatalogs']).then(function (result) { });
4797
+ var availableCatalogs = [];
4798
+ try {
4799
+ for (var _b = __values(result['resultObject']['availableCatalogs']), _c = _b.next(); !_c.done; _c = _b.next()) {
4800
+ var availableCatalog = _c.value;
4801
+ var instance = Object.assign(new catalogDefinition_bo.CatalogDefinition(), availableCatalog);
4802
+ availableCatalogs.push(instance);
4803
+ }
4804
+ }
4805
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4806
+ finally {
4807
+ try {
4808
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
4809
+ }
4810
+ finally { if (e_1) throw e_1.error; }
4811
+ }
4812
+ _this.loadCatalogs(availableCatalogs).then(function (result) { });
4797
4813
  }
4798
4814
  if (result['resultObject']['unavailableCatalogs']) {
4799
4815
  _this.loadUnavailableCatalogs(result['resultObject']['unavailableCatalogs']);