1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-16 07:08:55 +00:00

fix groupID

This commit is contained in:
Michael An
2019-04-30 18:04:41 +08:00
parent 7c1cacc9ed
commit 9d2ad20767
2 changed files with 14 additions and 25 deletions

View File

@@ -87,11 +87,6 @@ class Org extends React.Component {
render() {
let { isSidePanelClosed, currentTab, isShowAddOrgUserDialog, isShowAddOrgAdminDialog, isInviteUserDialogOpen } = this.state;
let href = window.location.href;
let newPath = 'groups/';
if (href.indexOf('org/departmentadmin/groups/') > 0) {
newPath = href.slice(href.indexOf('groups/'));
}
return (
<div id="main">
<SidePanel isSidePanelClosed={isSidePanelClosed} onCloseSidePanel={this.onCloseSidePanel} currentTab={currentTab} tabItemClick={this.tabItemClick} />
@@ -126,7 +121,7 @@ class Org extends React.Component {
toggleAddDepartDialog={this.toggleAddDepartDialog}
/>
<OrgDepartmentItem
path={newPath}
path='groups/:groupID'
isShowAddDepartDialog={this.state.isShowAddDepartDialog}
toggleAddDepartDialog={this.toggleAddDepartDialog}
isShowAddMemberDialog={this.state.isShowAddMemberDialog}