CB-5010 fix: ensure session opened (#2566)

This commit is contained in:
Alexey
2024-04-25 13:14:56 +03:00
committed by GitHub
parent 368c9e2179
commit d70470b853
@@ -73,6 +73,7 @@ export class SessionResource extends CachedDataResource<SessionState | null> {
}
async changeLanguage(locale: string): Promise<void> {
await this.load();
if (this.data?.locale === locale) {
return;
}