ryuichi-e 6 лет назад
Родитель
Сommit
af49207760
1 измененных файлов с 1 добавлено и 2 удалено
  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) {
     const { adminUsersContainer } = this.props;
     if (!this.validateToggleStatus(statusType)) {
-      await adminUsersContainer.setState({ isNotifyCommentShow: true });
-      return;
+      return this.setState({ isNotifyCommentShow: true });
     }
 
     if (adminUsersContainer.state.isNotifyCommentShow === true) {