fix(web): address strict mode review feedback

This commit is contained in:
4gray committed 2026-05-22 03:11:14 +03:00
1 parent 4ab8915483
commit 5d355b6f10
7 files changed
+53 -13

No files matched your search

@@ -496,12 +496,13 @@ export class SettingsComponent implements OnInit, OnDestroy {
}
private createSettingsFromFormValue(): Settings {
const currentSettings = this.settingsStore.getSettings();
const value = this.settingsForm.value;
const epgUrl = Array.isArray(value.epgUrl)
? value.epgUrl.filter(
(url): url is string => typeof url === 'string'
)
: [];
: (currentSettings.epgUrl ?? []);
return {
player: value.player ?? VideoPlayer.VideoJs,
@@ -533,7 +534,9 @@ export class SettingsComponent implements OnInit, OnDestroy {
coverSize: value.coverSize ?? 'medium',
epgUrl,
preferUploadedEpgOverXtream:
value.preferUploadedEpgOverXtream ?? false,
value.preferUploadedEpgOverXtream ??
currentSettings.preferUploadedEpgOverXtream ??
false,
};
}