fix: set epgSource as not required field

this commit fixes #175
This commit is contained in:
4gray committed 2022-10-06 22:31:18 +02:00
1 parent 5eb71f0927
commit 049ed6be51
1 file changed
+2 -5
+2 -5
View File
@@ -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,
@@ -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)])
);
}
}