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

@ -91,5 +91,5 @@ jobs:
cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY
exit $exit_code exit $exit_code
env: env:
WEBHOOK_URL: ${{ inputs.webhook_url || secrets.WEBHOOK }} WEBHOOK_URL: ${{ inputs.webhook_url || secrets.WEBHOOK_URL }}
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }} WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}

View file

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