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
Fixed a bug
  • Loading branch information
hkmoon committed Sep 26, 2019
commit c443babf24ae4d096c4d709b45e5a1067b63f61d
4 changes: 2 additions & 2 deletions src/models/owner.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class owner extends Base {
this.get(`groups`)
.then(response => response.json())
.then(groups => {
if (groups.body.length === 0) return reject('Group not found');
groups = groups.body;
if (groups.length === 0) return reject('Group not found');
groups = groups;

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