mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 02:46:16 -08:00
fix(stalker): reset totalCount to 0 when no valid category or playlist is available
This commit is contained in:
1 parent
36051900ca
commit
147439c02f
1 file changed
+3
@@ -186,6 +186,7 @@ export function withStalkerContent() {
|
||||
params.category === null ||
|
||||
params.category === ''
|
||||
) {
|
||||
patchState(store, { totalCount: 0 });
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
if (
|
||||
@@ -194,6 +195,7 @@ export function withStalkerContent() {
|
||||
params.contentType === 'series') &&
|
||||
params.availableCategoryCount === 0
|
||||
) {
|
||||
patchState(store, { totalCount: 0 });
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
|
||||
@@ -204,6 +206,7 @@ export function withStalkerContent() {
|
||||
!currentPlaylist() ||
|
||||
!currentPlaylist().portalUrl
|
||||
) {
|
||||
patchState(store, { totalCount: 0 });
|
||||
return Promise.resolve(undefined);
|
||||
}
|
||||
// VOD uses 'genre' param, series uses 'category' param, itv uses both
|
||||
|
||||
Reference in new issue
Block a user