Skip to content

Commit

Permalink
Fix missing await to responseJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
luizrrodrigues authored Mar 2, 2023
1 parent d4cc793 commit fe33a4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class GroupService {
async getGroupTreeIds(rootGroupId) {
const url = `/groups/${rootGroupId}?flattenGroupIdTree=true`;
const response = await this.private.api.get(url);
const responseJSON = handleApiResponse(response);
const responseJSON = await handleApiResponse(response);

const treeIds = responseJSON.flattenGroupIdTree;
treeIds.push(rootGroupId);
Expand Down

0 comments on commit fe33a4b

Please sign in to comment.