1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-06 09:21:54 +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 = () => { loadGroups = () => {
let _this = this; let _this = this;
seafileAPI.listGroups().then(res =>{ seafileAPI.listGroupsV2({'with_repos': 0}).then(res =>{
let data = res.data.groups; let data = res.data;
this.groupsHeight = (data.length + 1) * _this.listHeight; this.groupsHeight = (data.length + 1) * _this.listHeight;
_this.setState({ _this.setState({
groupItems: data groupItems: data