From 0d896dd8743a1aed3f74dba4dceca7d79dae0830 Mon Sep 17 00:00:00 2001 From: Jose Alberto Hernandez Date: Tue, 2 Jan 2024 22:38:17 -0600 Subject: [PATCH] Avoid override Tenant Identifier with default value on refresh --- src/app/web-app.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/web-app.component.ts b/src/app/web-app.component.ts index 3b72acb5e..48b3c28b9 100644 --- a/src/app/web-app.component.ts +++ b/src/app/web-app.component.ts @@ -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(',')); }