mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(epg-list): normalize days value before subtracting
This commit is contained in:
1 parent
e06c154e0f
commit
60a06c2b60
1 file changed
+4
-1
@@ -92,7 +92,10 @@ export class EpgListComponent implements OnInit {
|
||||
active?.tvg?.rec || active?.timeshift || active?.catchup?.days
|
||||
);
|
||||
}),
|
||||
map((value) => moment().subtract(value, 'days').toISOString())
|
||||
map((value) => {
|
||||
const days = Number(value ?? 0) || 0;
|
||||
return moment().subtract(days, 'days').toISOString();
|
||||
})
|
||||
);
|
||||
|
||||
private readonly selectedDate$ = new BehaviorSubject<string>(
|
||||
|
||||
Reference in new issue
Block a user