Skip to content

Commit 51ae2f2

Browse files
author
Dushyant Bhalgami
committed
changes related to V5 Groups API
1 parent 373f9b5 commit 51ae2f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/groups.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ export function checkUserGroups(groupIds, userGroups, knownGroups) {
140140
function handleApiResponse(response) {
141141
if (!response.ok) throw new Error(response.statusText);
142142
return response.json().then(({ result }) => {
143-
if (result.status !== 200) throw new Error(result.content);
144-
return result.content;
143+
// if (result.status !== 200) throw new Error(result.content);
144+
return result;
145145
});
146+
146147
}
147148

148149
/**

0 commit comments

Comments
 (0)