Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ export class GeneralSettingsComponent implements OnInit, OnDestroy {
private destroy$: Subject<boolean> = new Subject<boolean>();

get deviceControl(): FormControl {
return this.settingForm.get('device_intf') as FormControl;
return this.settingForm?.get('device_intf') as FormControl;
}

get internetControl(): FormControl {
return this.settingForm.get('internet_intf') as FormControl;
return this.settingForm?.get('internet_intf') as FormControl;
}

get isFormValues(): boolean {
Expand Down Expand Up @@ -217,6 +217,8 @@ export class GeneralSettingsComponent implements OnInit, OnDestroy {
if (config?.network) {
const { device_intf, internet_intf } = config.network;
this.setDefaultFormValues(device_intf, internet_intf);
} else {
this.internetControl?.setValue(this.defaultInternetOption);
}
});
}
Expand Down