mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Fixed #1644
This commit is contained in:
parent
005739fe46
commit
4fd0125849
1 changed files with 10 additions and 4 deletions
|
@ -30,7 +30,6 @@ export class SonarrComponent implements OnInit {
|
|||
private fb: FormBuilder) { }
|
||||
|
||||
public ngOnInit() {
|
||||
|
||||
this.settingsService.getSonarr()
|
||||
.subscribe(x => {
|
||||
this.form = this.fb.group({
|
||||
|
@ -103,10 +102,17 @@ export class SonarrComponent implements OnInit {
|
|||
this.notificationService.error("Please check your entered values");
|
||||
return;
|
||||
}
|
||||
if(form.controls.defaultQualityProfile.value === "-1" || form.controls.defaultRootPath.value === "Please Select") {
|
||||
if(form.controls.defaultQualityProfile) {
|
||||
if(form.controls.defaultQualityProfile.value === "-1") {
|
||||
this.notificationService.error("Please check your entered values");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(form.controls.defaultRootPath) {
|
||||
if(form.controls.defaultRootPath.value === "Please Select") {
|
||||
this.notificationService.error("Please check your entered values");
|
||||
}
|
||||
}
|
||||
|
||||
this.settingsService.saveSonarr(form.value)
|
||||
.subscribe(x => {
|
||||
if (x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue