@yomotech/view-toolkit 0.0.26 → 0.0.27

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.
@@ -2704,9 +2704,11 @@ class ConfigService {
2704
2704
  }
2705
2705
  else {
2706
2706
  tenantName = await this.utilityService.getStorage('tenantName');
2707
- selectedTenant = await this.utilityService.getStorage('selectedTenant');
2707
+ selectedTenant = await this.utilityService.getLocalStorage('selectedTenant');
2708
2708
  }
2709
- this.config = await this.couchdbService.getFileContentFromCouchDb(`${tenantName ? tenantName : selectedTenant}_${projectName}`, 'environments/environment.json');
2709
+ let tenant = tenantName ? tenantName : selectedTenant;
2710
+ console.log('tenant2: ', tenant);
2711
+ this.config = await this.couchdbService.getFileContentFromCouchDb(`${tenant}_${projectName}`, 'environments/environment.json');
2710
2712
  if (this.platform.ANDROID || this.platform.IOS) {
2711
2713
  if (this.config.environment.login.mobile) {
2712
2714
  this.setConfiguration(this.config.environment.login.mobile);
@@ -2761,7 +2763,9 @@ class ConfigService {
2761
2763
  tenantName = await this.utilityService.getStorage('tenantName');
2762
2764
  selectedTenant = await this.utilityService.getLocalStorage('selectedTenant');
2763
2765
  }
2764
- const env = await this.couchdbService.getFileContentFromCouchDb(`${tenantName ? tenantName : selectedTenant}_${projectName}`, 'environments/environment.json');
2766
+ let tenant = tenantName ? tenantName : selectedTenant;
2767
+ console.log('tenant1: ', tenant);
2768
+ const env = await this.couchdbService.getFileContentFromCouchDb(`${tenant}_${projectName}`, 'environments/environment.json');
2765
2769
  if (env?.environment?.login.type === "keycloak") {
2766
2770
  if (this.platform.ANDROID || this.platform.IOS) {
2767
2771
  this.keycloakConfig = {