From 9a30ae2aca2af0dac5ac034f29110ac706061708 Mon Sep 17 00:00:00 2001 From: Andrey Sychev Date: Tue, 17 Dec 2024 08:38:54 +0100 Subject: [PATCH] CB-5074 fix: temporary fix of setting undefined as locale --- webapp/packages/core-root/src/SessionResource.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/packages/core-root/src/SessionResource.ts b/webapp/packages/core-root/src/SessionResource.ts index ba8d504058..7998b40ee3 100644 --- a/webapp/packages/core-root/src/SessionResource.ts +++ b/webapp/packages/core-root/src/SessionResource.ts @@ -74,7 +74,8 @@ export class SessionResource extends CachedDataResource { async changeLanguage(locale: string): Promise { await this.load(); - if (this.data?.locale === locale) { + //TODO we check "!locale" because of the bug described in CB-6048, should be removed when fixed + if (this.data?.locale === locale || !locale) { return; } await this.graphQLService.sdk.changeSessionLanguage({ locale });