From 0c8212078c55a74854b2d902247ee7e45a104ee1 Mon Sep 17 00:00:00 2001 From: TheInvincible <139259364+TheInvincibleRalph@users.noreply.github.com> Date: Fri, 4 Oct 2024 15:54:22 +0100 Subject: [PATCH] Filter archived channel from webhooks dropdown (#28427) --- webapp/channels/src/components/channel_select/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/channels/src/components/channel_select/index.ts b/webapp/channels/src/components/channel_select/index.ts index 08d71804dd..faac736179 100644 --- a/webapp/channels/src/components/channel_select/index.ts +++ b/webapp/channels/src/components/channel_select/index.ts @@ -17,7 +17,8 @@ const getMyChannelsSorted = createSelector( getMyChannels, getCurrentUserLocale, (channels, locale) => { - return [...channels].sort(sortChannelsByTypeAndDisplayName.bind(null, locale)); + const activeChannels = channels.filter((channel) => channel.delete_at === 0); + return [...activeChannels].sort(sortChannelsByTypeAndDisplayName.bind(null, locale)); }, );