itizawa 5 anni fa
parent
commit
c22d2b7698
1 ha cambiato i file con 13 aggiunte e 15 eliminazioni
  1. 13 15
      src/client/js/components/Admin/UserGroup/UserGroupPage.jsx

+ 13 - 15
src/client/js/components/Admin/UserGroup/UserGroupPage.jsx

@@ -146,23 +146,21 @@ class UserGroupPage extends React.Component {
           isAclEnabled={isAclEnabled}
           isAclEnabled={isAclEnabled}
           onCreate={this.addUserGroup}
           onCreate={this.addUserGroup}
         />
         />
+        <UserGroupTable
+          userGroups={this.state.userGroups}
+          isAclEnabled={isAclEnabled}
+          onDelete={this.showDeleteModal}
+          userGroupRelations={this.state.userGroupRelations}
+        />
         {this.state.userGroups.length === 0
         {this.state.userGroups.length === 0
         ? <p>No groups yet</p> : (
         ? <p>No groups yet</p> : (
-          <>
-            <UserGroupTable
-              userGroups={this.state.userGroups}
-              isAclEnabled={isAclEnabled}
-              onDelete={this.showDeleteModal}
-              userGroupRelations={this.state.userGroupRelations}
-            />
-            <PaginationWrapper
-              activePage={this.state.activePage}
-              changePage={this.handlePage}
-              totalItemsCount={this.state.totalUserGroups}
-              pagingLimit={this.state.pagingLimit}
-              size="sm"
-            />
-          </>
+          <PaginationWrapper
+            activePage={this.state.activePage}
+            changePage={this.handlePage}
+            totalItemsCount={this.state.totalUserGroups}
+            pagingLimit={this.state.pagingLimit}
+            size="sm"
+          />
         )}
         )}
         <UserGroupDeleteModal
         <UserGroupDeleteModal
           userGroups={this.state.userGroups}
           userGroups={this.state.userGroups}