Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Prev Previous commit
Next Next commit
Remove body part
  • Loading branch information
hkmoon committed Sep 26, 2019
commit d4469e160acbf074d47c4040ec4b84f9989019c0
6 changes: 3 additions & 3 deletions src/models/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class owner extends Base {
this.get(`groups`)
.then(response => response.json())
.then(groups => {
if (groups.body.length === 0) return resolve();
if (groups.length === 0) return resolve();

let filtered = this._filterGroupsByParents(groups.body, this.groups.map(g => g.id));
let filtered = this._filterGroupsByParents(groups, this.groups.map(g => g.id));
if (filtered.length === 0) return resolve();

this.groups = this.groups.concat(filtered);
Expand Down Expand Up @@ -126,7 +126,7 @@ class owner extends Base {
this.get(`groups/${group.id}/projects`)
.then(response => response.json())
.then(projects => {
this.projects = this.projects.concat(projects.body);
this.projects = this.projects.concat(projects);
done();
})
.catch(e => done(e));
Expand Down