1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 08:53:14 +00:00

update unshare call api

This commit is contained in:
shanshuirenjia
2019-07-02 15:36:08 +08:00
parent c24ecf8b50
commit bfffe2dbfa
4 changed files with 6 additions and 6 deletions

View File

@@ -240,7 +240,7 @@ class GroupView extends React.Component {
onItemUnshare = (repo) => {
let group = this.state.currentGroup;
seafileAPI.unshareRepo(repo.repo_id, {share_type: 'group', group_id: group.id}).then(() => {
seafileAPI.unshareRepoToGroup(repo.repo_id, group.id).then(() => {
let repoList = this.state.repoList.filter(item => {
return item.repo_id !== repo.repo_id;
});