From: Dessalines Date: Wed, 7 Apr 2021 17:01:58 +0000 (-0400) Subject: Fixing unban. Fixes #248 X-Git-Url: http://these/git/%24%7BgetStaticDir%28%29%7D/styles/%7B%60https:/%7BimageSrc%7D?a=commitdiff_plain;h=2c80cea36f94e6ccc83d929fc7cbbfabc93c7fbf;p=lemmy-ui.git Fixing unban. Fixes #248 --- diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index d5d734f..2608062 100644 --- a/src/shared/components/post-listing.tsx +++ b/src/shared/components/post-listing.tsx @@ -1383,7 +1383,7 @@ export class PostListing extends Component { } handleModBanBothSubmit(i: PostListing, event?: any) { - event.preventDefault(); + if (event) event.preventDefault(); if (i.state.banType == BanType.Community) { // If its an unban, restore all their data