Invalid locales do not prevent languages from being selected anymore

Fixed video previews on mouse over when in multi-user mode
This commit is contained in:
Isaac Abadi
2021-09-30 22:27:44 -06:00
parent 45be270b6f
commit bff40d97bb
3 changed files with 6 additions and 5 deletions

View File

@@ -81,7 +81,9 @@
<mat-label><ng-container i18n="Language select label">Language</ng-container></mat-label>
<mat-select (selectionChange)="localeSelectChanged($event.value)" [(value)]="initialLocale">
<mat-option *ngFor="let locale of supported_locales" [value]="locale">
{{all_locales[locale]['nativeName']}}
<ng-container *ngIf="all_locales[locale]">
{{all_locales[locale]['nativeName']}}
</ng-container>
</mat-option>
</mat-select>
</mat-form-field>