From 59b1fb3b0273a690a424146d02f261cf82bb7a59 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Tue, 13 May 2025 14:50:36 -0400 Subject: [PATCH] Fix Crashing With SHC --- .github/workflows/reportBrokenPlugins.yml | 2 +- .../showHiddenChannels/components/HiddenChannelLockScreen.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reportBrokenPlugins.yml b/.github/workflows/reportBrokenPlugins.yml index e4d0529a..8ca56098 100644 --- a/.github/workflows/reportBrokenPlugins.yml +++ b/.github/workflows/reportBrokenPlugins.yml @@ -91,5 +91,5 @@ jobs: cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY exit $exit_code env: - WEBHOOK_URL: ${{ inputs.webhook_url || secrets.WEBHOOK }} + WEBHOOK_URL: ${{ inputs.webhook_url || secrets.WEBHOOK_URL }} WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }} diff --git a/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx b/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx index bbe286af..2fc21ef8 100644 --- a/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx +++ b/src/plugins/showHiddenChannels/components/HiddenChannelLockScreen.tsx @@ -141,7 +141,7 @@ function HiddenChannelLockScreen({ channel }: { channel: ExtendedChannel; }) { useEffect(() => { const membersToFetch: Array = []; - 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 }) => {