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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user