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

pull/4245/head
stefangross 4 years ago
parent a9bbd55c05
commit 0bbf5c1b56

@ -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>

Loading…
Cancel
Save