added null check to to prevent crash when loading couchpotato settings for the first time

This commit is contained in:
stefangross 2021-07-03 11:20:42 +02:00
commit 0bbf5c1b56

View file

@ -55,7 +55,7 @@
<mat-form-field appearance="outline">
<mat-label>Quality Profiles</mat-label>
<mat-select formControlName="defaultProfileId">
<mat-option *ngFor="let profile of profiles.list" value="{{profile._id}}">{{profile.label}}</mat-option>
<mat-option *ngFor="let profile of profiles?.list" value="{{profile._id}}">{{profile.label}}</mat-option>
</mat-select>
<mat-error>A Default Quality Profile is required</mat-error>
</mat-form-field>