Skip to content

Attempting to access deleted space/channel causes an n().mature is undefined error #18

@tulpenkiste

Description

@tulpenkiste

I believe this part of the code is responsible?

<Base>
<AgeGate
enabled={channel().mature}
contentId={channel().id}
contentName={"#" + channel().name}
contentType="channel"
>
<Switch fallback="Unknown channel type!">
<Match when={!channel()}>
<Navigate href={"../.."} />
</Match>
<Match when={TEXT_CHANNEL_TYPES.includes(channel()!.type)}>
<TextChannel channel={channel()} />
</Match>

Should probably auto redirect to home in this instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions