Only display TextChannels as option for SystemMessage channels

This commit is contained in:
Ryan Alexander 2021-08-22 05:53:20 +10:00 committed by Paul Makles
parent a6846192de
commit c02c4a63fa

View file

@ -152,7 +152,7 @@ export const Overview = observer(({ server }: Props) => {
<Text id="general.disabled" />
</option>
{server.channels
.filter((x) => typeof x !== "undefined")
.filter((x) => (typeof x !== "undefined" && x.channel_type === "TextChannel"))
.map((channel) => (
<option key={channel!._id} value={channel!._id}>
{getChannelName(channel!, true)}