diff --git a/libs/ui/components/src/lib/playlist-switcher/playlist-switcher.component.ts b/libs/ui/components/src/lib/playlist-switcher/playlist-switcher.component.ts index 3c2d8ee15..7d5bc29b0 100644 --- a/libs/ui/components/src/lib/playlist-switcher/playlist-switcher.component.ts +++ b/libs/ui/components/src/lib/playlist-switcher/playlist-switcher.component.ts @@ -96,12 +96,6 @@ export class PlaylistSwitcherComponent { .subscribe((event: NavigationEnd) => { this.updateActivePlaylistFromRoute(event.urlAfterRedirects); }); - - // Check portal status for Xtream playlists when playlists load - effect(() => { - const allPlaylists = this.playlists(); - this.checkPortalStatuses(allPlaylists); - }); } private updateActivePlaylistFromRoute(url: string) { @@ -137,6 +131,7 @@ export class PlaylistSwitcherComponent { onMenuOpened() { this.isMenuOpen.set(true); + this.checkPortalStatuses(this.playlists()); } onMenuClosed() { @@ -186,4 +181,4 @@ export class PlaylistSwitcherComponent { isSelected(playlist: PlaylistMeta): boolean { return this.activePlaylistId() === playlist._id; } -} +} \ No newline at end of file