diff --git a/src/app/channel-list-container/channel-list-container.component.html b/src/app/channel-list-container/channel-list-container.component.html
index b0130ebed..00c3409c4 100644
--- a/src/app/channel-list-container/channel-list-container.component.html
+++ b/src/app/channel-list-container/channel-list-container.component.html
@@ -40,7 +40,7 @@
-
+
@@ -73,7 +73,10 @@
-
+
- createChannel(element, favorites)
+ createChannel(element)
);
this.channelStore.upsertMany(channels);
this.channelStore.update(() => ({
diff --git a/src/app/state/channel.model.ts b/src/app/state/channel.model.ts
index fbf01b977..91613466f 100755
--- a/src/app/state/channel.model.ts
+++ b/src/app/state/channel.model.ts
@@ -1,5 +1,3 @@
-import { ID, guid } from '@datorama/akita';
-
/**
* Represents channel object
* TODO: define channel interface in iptv-parser library
@@ -11,22 +9,17 @@ export interface Channel {
group: {
title: string;
};
- fav: boolean;
}
/**
* Creates new channel object based on the given fields
* @param params partial channel object
*/
-export function createChannel(
- params: Partial,
- favoritesList: string[]
-) {
+export function createChannel(params: Partial): Channel {
return {
id: params.url,
name: params.name,
group: params.group,
url: params.url,
- fav: favoritesList.includes(params.url),
} as Channel;
}