@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.
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.75.0
1
+ /** @license Frontegg v6.76.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.75.0
1
+ /** @license Frontegg v6.76.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.75.0",
3
+ "version": "6.76.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",