mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
change list group api
This commit is contained in:
@@ -43,8 +43,8 @@ class MainSideNav extends React.Component {
|
||||
|
||||
loadGroups = () => {
|
||||
let _this = this;
|
||||
seafileAPI.listGroups().then(res =>{
|
||||
let data = res.data.groups;
|
||||
seafileAPI.listGroupsV2({'with_repos': 0}).then(res =>{
|
||||
let data = res.data;
|
||||
this.groupsHeight = (data.length + 1) * _this.listHeight;
|
||||
_this.setState({
|
||||
groupItems: data
|
||||
|
Reference in New Issue
Block a user