Skip to content

Commit d4469e1

Browse files
committed
Remove body part
1 parent c443bab commit d4469e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/models/owner.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ class owner extends Base {
6060
this.get(`groups`)
6161
.then(response => response.json())
6262
.then(groups => {
63-
if (groups.body.length === 0) return resolve();
63+
if (groups.length === 0) return resolve();
6464

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

6868
this.groups = this.groups.concat(filtered);
@@ -126,7 +126,7 @@ class owner extends Base {
126126
this.get(`groups/${group.id}/projects`)
127127
.then(response => response.json())
128128
.then(projects => {
129-
this.projects = this.projects.concat(projects.body);
129+
this.projects = this.projects.concat(projects);
130130
done();
131131
})
132132
.catch(e => done(e));

0 commit comments

Comments
 (0)