diff --git a/src/shared/components/comment-node.tsx b/src/shared/components/comment-node.tsx index dd604111..e86a3428 100644 --- a/src/shared/components/comment-node.tsx +++ b/src/shared/components/comment-node.tsx @@ -94,7 +94,7 @@ export class CommentNode extends Component { showRemoveDialog: false, removeReason: null, showBanDialog: false, - removeData: null, + removeData: false, banReason: null, banExpires: null, banType: BanType.Community, diff --git a/src/shared/components/post-listing.tsx b/src/shared/components/post-listing.tsx index 8798d0db..b485a0a0 100644 --- a/src/shared/components/post-listing.tsx +++ b/src/shared/components/post-listing.tsx @@ -80,7 +80,7 @@ export class PostListing extends Component { showRemoveDialog: false, removeReason: null, showBanDialog: false, - removeData: null, + removeData: false, banReason: null, banExpires: null, banType: BanType.Community, @@ -1284,7 +1284,7 @@ export class PostListing extends Component { i.setState(i.state); } - handleModRemoveSubmit(i: PostListing) { + handleModRemoveSubmit(i: PostListing, event: any) { event.preventDefault(); let form: RemovePost = { post_id: i.props.post_view.post.id, @@ -1350,7 +1350,7 @@ export class PostListing extends Component { i.handleModBanBothSubmit(i); } - handleModBanBothSubmit(i: PostListing) { + handleModBanBothSubmit(i: PostListing, event?: any) { event.preventDefault(); if (i.state.banType == BanType.Community) {