Avoid override Tenant Identifier with default value on refresh

This commit is contained in:
Jose Alberto Hernandez
2024-01-03 10:07:29 +01:00
committed by Adam Saghy
parent e87598a4b3
commit 0d896dd874
+3 -1
View File
@@ -197,7 +197,9 @@ export class WebAppComponent implements OnInit {
// Set the server list from the env var FINERACT_API_URLS
this.settingsService.setServers(environment.baseApiUrls.split(','));
// Set the Tenant Identifier(s) list from the env var
this.settingsService.setTenantIdentifier(environment.fineractPlatformTenantId || 'default');
if (!localStorage.getItem('mifosXTenantIdentifier')) {
this.settingsService.setTenantIdentifier(environment.fineractPlatformTenantId || 'default');
}
this.settingsService.setTenantIdentifiers(environment.fineractPlatformTenantIds.split(','));
}