Filter archived channel from webhooks dropdown (#28427)

Этот коммит содержится в:
TheInvincible
2024-10-04 15:54:22 +01:00
коммит произвёл GitHub
родитель b859ca2d90
Коммит 0c8212078c

Просмотреть файл

@@ -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));
},
);