A collection of bug fixes (#3820)
Co-authored-by: Joseph Milazzo <joseph.v.milazzo@gmail.com>
This commit is contained in:
parent
6288d89651
commit
193e9b1da9
36 changed files with 268 additions and 89 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue