Skip to content

Commit c443bab

Browse files
committed
Fixed a bug
1 parent c93b49d commit c443bab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/owner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class owner extends Base {
3939
this.get(`groups`)
4040
.then(response => response.json())
4141
.then(groups => {
42-
if (groups.body.length === 0) return reject('Group not found');
43-
groups = groups.body;
42+
if (groups.length === 0) return reject('Group not found');
43+
groups = groups;
4444

4545
let filtered = groups.filter(group => group.full_path === this.config.get('project'));
4646
if (filtered.length === 0) return reject('Group not found');

0 commit comments

Comments
 (0)