From e66d0892b12c5b3b3e8a6b7a4129103a912486a9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 28 Feb 2022 13:44:37 +0100 Subject: Fix listUserChannelsForSelect --- client/src/app/helpers/utils/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src/app/helpers/utils') 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) }) ) -- cgit v1.2.3