@frontegg/redux-store 6.75.0 → 6.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/auth/TeamState/saga.js +2 -1
- package/index.js +1 -1
- package/node/auth/TeamState/saga.js +2 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
package/auth/TeamState/saga.js
CHANGED
|
@@ -208,12 +208,13 @@ function* addUser({
|
|
|
208
208
|
})
|
|
209
209
|
}));
|
|
210
210
|
try {
|
|
211
|
+
var _roles$map;
|
|
211
212
|
const res = yield call(api.teams.addUser, body);
|
|
212
213
|
const {
|
|
213
214
|
roles
|
|
214
215
|
} = res,
|
|
215
216
|
userWithoutRoleIds = _objectWithoutPropertiesLoose(res, _excluded2);
|
|
216
|
-
const roleIds = roles.map(role => role.id);
|
|
217
|
+
const roleIds = (_roles$map = roles == null ? void 0 : roles.map(role => role.id)) != null ? _roles$map : [];
|
|
217
218
|
const newUser = _extends({}, userWithoutRoleIds, {
|
|
218
219
|
roleIds
|
|
219
220
|
});
|
package/index.js
CHANGED
|
@@ -216,12 +216,13 @@ function* addUser({
|
|
|
216
216
|
})
|
|
217
217
|
}));
|
|
218
218
|
try {
|
|
219
|
+
var _roles$map;
|
|
219
220
|
const res = yield (0, _effects.call)(_restApi.api.teams.addUser, body);
|
|
220
221
|
const {
|
|
221
222
|
roles
|
|
222
223
|
} = res,
|
|
223
224
|
userWithoutRoleIds = (0, _objectWithoutPropertiesLoose2.default)(res, _excluded2);
|
|
224
|
-
const roleIds = roles.map(role => role.id);
|
|
225
|
+
const roleIds = (_roles$map = roles == null ? void 0 : roles.map(role => role.id)) != null ? _roles$map : [];
|
|
225
226
|
const newUser = (0, _extends2.default)({}, userWithoutRoleIds, {
|
|
226
227
|
roleIds
|
|
227
228
|
});
|
package/node/index.js
CHANGED