mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
Only display TextChannels as option for SystemMessage channels
This commit is contained in:
parent
a6846192de
commit
c02c4a63fa
1 changed files with 1 additions and 1 deletions
|
@ -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)}
|
||||
|
|
Loading…
Reference in a new issue