mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 08:38:37 +00:00
Only display TextChannels as option for SystemMessage channels
This commit is contained in:
committed by
Paul Makles
parent
a6846192de
commit
c02c4a63fa
@@ -152,7 +152,7 @@ export const Overview = observer(({ server }: Props) => {
|
|||||||
<Text id="general.disabled" />
|
<Text id="general.disabled" />
|
||||||
</option>
|
</option>
|
||||||
{server.channels
|
{server.channels
|
||||||
.filter((x) => typeof x !== "undefined")
|
.filter((x) => (typeof x !== "undefined" && x.channel_type === "TextChannel"))
|
||||||
.map((channel) => (
|
.map((channel) => (
|
||||||
<option key={channel!._id} value={channel!._id}>
|
<option key={channel!._id} value={channel!._id}>
|
||||||
{getChannelName(channel!, true)}
|
{getChannelName(channel!, true)}
|
||||||
|
|||||||
Reference in New Issue
Block a user