fix(stalker): reset totalCount to 0 when no valid category or playlist is available

This commit is contained in:
4gray committed 2026-02-16 22:47:35 +01:00
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