Skip to content

Commit

Permalink
fix: set epgSource as not required field
Browse files Browse the repository at this point in the history
this commit fixes #175
  • Loading branch information
4gray committed Oct 6, 2022
1 parent 5eb71f0 commit 049ed6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/settings/settings.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class SettingsComponent implements OnInit {
player: settings.player
? settings.player
: VideoPlayer.VideoJs,
...(this.isElectron ? { epgUrl: new Array() } : {}),
...(this.isElectron ? { epgUrl: [] } : {}),
language: settings.language
? settings.language
: Language.ENGLISH,
Expand Down Expand Up @@ -137,10 +137,7 @@ export class SettingsComponent implements OnInit {

for (const url of epgUrls) {
this.epgUrl.push(
new UntypedFormControl(url, [
Validators.required,
Validators.pattern(URL_REGEX),
])
new UntypedFormControl(url, [Validators.pattern(URL_REGEX)])
);
}
}
Expand Down

0 comments on commit 049ed6b

Please sign in to comment.