mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-11 19:46:16 -08:00
fix(favorites): correct type mapping in getFavorites method
This commit is contained in:
1 parent
a7f4e97f6f
commit
fed05e1a8b
2 files changed
+4
-2
No files matched your search
@@ -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<RecentlyViewedComponent>
|
||||
) {
|
||||
this.xtreamStore.setSelectedContentType(undefined);
|
||||
|
||||
if (this.isGlobal) {
|
||||
this.loadGlobalItems();
|
||||
} else if (this.currentPlaylist()) {
|
||||
|
||||
@@ -60,7 +60,7 @@ export class FavoritesService {
|
||||
[playlistId]
|
||||
);
|
||||
}),
|
||||
map((results) => results as FavoriteItem[])
|
||||
map((results) => results)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user