diff --git a/client/src/app/helpers/utils/channel.ts b/client/src/app/helpers/utils/channel.ts index 2cd56d6e6..094a844e0 100644 --- a/client/src/app/helpers/utils/channel.ts +++ b/client/src/app/helpers/utils/channel.ts @@ -24,7 +24,7 @@ function listUserChannelsForSelect (authService: AuthService) { id: c.id, label: c.displayName, support: c.support, - avatarPath: minBy(c.avatars, 'width')[0]?.path + avatarPath: minBy(c.avatars, 'width')?.[0]?.path }) as SelectChannelItem) }) )