1
0
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:
ilearnit
2018-12-17 08:31:33 +00:00
parent d2ff0bb5eb
commit 3da92d9f4f

View File

@@ -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