A collection of bug fixes (#3820)

Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
Fesaa 2025-06-04 09:45:10 +02:00 committed by GitHub
parent 6288d89651
commit 193e9b1da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 268 additions and 89 deletions

View file

@ -110,7 +110,12 @@ export class ManageUserPreferencesComponent implements OnInit {
get Locale() {
if (!this.settingsForm.get('locale')) return 'English';
return (this.locales || []).filter(l => l.fileName === this.settingsForm.get('locale')!.value)[0].renderName;
const locale = (this.locales || []).find(l => l.fileName === this.settingsForm.get('locale')!.value);
if (!locale) {
return 'English';
}
return locale.renderName;
}