We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69ebc10 commit 2e1002aCopy full SHA for 2e1002a
src/models/owner.js
@@ -56,9 +56,9 @@ class owner extends Base {
56
return new Promise((resolve, reject) => {
57
this.get(`groups`)
58
.then(groups => {
59
- if (groups.body.length === 0) return reject();
+ if (groups.body.length === 0) return resolve();
60
let filtered = groups.body.filter(u => this.groups.map(g => g.id).indexOf(u.parent_id) !== -1);
61
- if (filtered.length === 0) return reject();
+ if (filtered.length === 0) return resolve();
62
this.groups = this.groups.concat(filtered);
63
resolve();
64
})
0 commit comments