diff --git a/src/app/xtream-tauri/recently-viewed/recently-viewed.component.ts b/src/app/xtream-tauri/recently-viewed/recently-viewed.component.ts index 72d8b716f..d8f5ae919 100644 --- a/src/app/xtream-tauri/recently-viewed/recently-viewed.component.ts +++ b/src/app/xtream-tauri/recently-viewed/recently-viewed.component.ts @@ -19,7 +19,7 @@ import { XtreamStore } from '../xtream.store'; MatIconButton, ], templateUrl: './recently-viewed.component.html', - styleUrl: './recently-viewed.component.scss' + styleUrl: './recently-viewed.component.scss', }) export class RecentlyViewedComponent { private xtreamStore = inject(XtreamStore); @@ -38,6 +38,8 @@ export class RecentlyViewedComponent { constructor( @Optional() public dialogRef?: MatDialogRef ) { + this.xtreamStore.setSelectedContentType(undefined); + if (this.isGlobal) { this.loadGlobalItems(); } else if (this.currentPlaylist()) { diff --git a/src/app/xtream-tauri/services/favorites.service.ts b/src/app/xtream-tauri/services/favorites.service.ts index ea9ed38cd..35b26d66a 100644 --- a/src/app/xtream-tauri/services/favorites.service.ts +++ b/src/app/xtream-tauri/services/favorites.service.ts @@ -60,7 +60,7 @@ export class FavoritesService { [playlistId] ); }), - map((results) => results as FavoriteItem[]) + map((results) => results) ); } }