Fix Crashing With SHC

This commit is contained in:
thororen1234 2025-05-13 14:50:36 -04:00
parent d460e926f1
commit 59b1fb3b02
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ function HiddenChannelLockScreen({ channel }: { channel: ExtendedChannel; }) {
useEffect(() => {
const membersToFetch: Array<string> = [];
const guildOwnerId = GuildStore.getGuild(guild_id).ownerId;
const guildOwnerId = GuildStore.getGuild(guild_id)?.ownerId;
if (!GuildMemberStore.getMember(guild_id, guildOwnerId)) membersToFetch.push(guildOwnerId);
Object.values(permissionOverwrites).forEach(({ type, id: userId }) => {