From 2c80cea36f94e6ccc83d929fc7cbbfabc93c7fbf Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 7 Apr 2021 13:01:58 -0400 Subject: [PATCH] Fixing unban. Fixes #248 --- src/shared/components/post-listing.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.1