Browse Source

remove await

ryuichi-e 6 years ago
parent
commit
af49207760
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/client/js/components/Admin/UserManagement.jsx

+ 1 - 2
src/client/js/components/Admin/UserManagement.jsx

@@ -48,8 +48,7 @@ class UserManagement extends React.Component {
   async handleClick(statusType) {
   async handleClick(statusType) {
     const { adminUsersContainer } = this.props;
     const { adminUsersContainer } = this.props;
     if (!this.validateToggleStatus(statusType)) {
     if (!this.validateToggleStatus(statusType)) {
-      await adminUsersContainer.setState({ isNotifyCommentShow: true });
-      return;
+      return this.setState({ isNotifyCommentShow: true });
     }
     }
 
 
     if (adminUsersContainer.state.isNotifyCommentShow === true) {
     if (adminUsersContainer.state.isNotifyCommentShow === true) {