fix(sonarr): 🐛 Fixed an issue where the language list didn't correctly load for power users in the advanced options #4782

This commit is contained in:
tidusjar 2022-10-22 18:55:51 +01:00
commit 217367047d

View file

@ -65,11 +65,9 @@ export class AdminRequestDialogComponent implements OnInit {
if (this.data.type === RequestType.tvShow) {
this.sonarrEnabled = await this.sonarrService.isEnabled();
if (this.sonarrEnabled) {
this.settingsService.getSonarr().subscribe((settings: ISonarrSettings) => {
this.sonarrService.getV3LanguageProfiles(settings).subscribe((profiles: ILanguageProfiles[]) => {
this.sonarrLanguageProfiles = profiles;
})
});
this.sonarrService.getV3LanguageProfilesWithoutSettings().subscribe((profiles: ILanguageProfiles[]) => {
this.sonarrLanguageProfiles = profiles;
})
this.sonarrService.getQualityProfilesWithoutSettings().subscribe(c => {
this.sonarrProfiles = c;
});