From 8fb8dac039ca665f412e3bca41582efbf455fa1e Mon Sep 17 00:00:00 2001 From: 4gray Date: Wed, 6 Dec 2023 21:08:43 +0100 Subject: [PATCH] refactor: code style improvements --- .../channel-list-container.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.ts b/src/app/player/components/channel-list-container/channel-list-container.component.ts index 9d0929bf9..41c646d10 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.ts +++ b/src/app/player/components/channel-list-container/channel-list-container.component.ts @@ -143,8 +143,8 @@ export class ChannelListContainerComponent { * @param index index of the channel item * @param channel channel object */ - trackByFn(index: number, channel: Channel): string { - return channel.id; + trackByFn(_: number, channel: Channel): string { + return channel?.id; } drop(event: CdkDragDrop, favorites: Channel[]) {