Fix home tab item width on Firefox.

Fix inability to leave server, for #95.
Add warning to invite bot.
This commit is contained in:
Paul
2021-08-17 20:47:44 +01:00
parent 5bfba2d7cf
commit 69cd410aff
3 changed files with 7 additions and 3 deletions

View File

@@ -43,13 +43,13 @@ function useEntries(channel: Channel, keys: string[], isServer?: boolean) {
const categoryInfo: { [key: string]: string } = {};
let roles: Server["roles"];
let roles: Server["roles"] | undefined;
let roleList: string[];
if (
channel.channel_type === "TextChannel" ||
channel.channel_type === "VoiceChannel"
) {
roles = channel.server!.roles;
roles = channel.server?.roles;
if (roles) {
const list = Object.keys(roles)
.map((id) => {