@itilite/iui-user-management 0.4.61 → 0.4.63

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/dist/index.js CHANGED
@@ -425,10 +425,10 @@ var userAddEditUrl = {
425
425
  return "api/v1/onboarding/user-signup-reject/" + userId + "?action=undo";
426
426
  },
427
427
  cardsEditUserDetails: function cardsEditUserDetails(userId) {
428
- return "https://5pyij203dl.execute-api.us-east-1.amazonaws.com/prod/card/authorization/user/549";
428
+ return env.getCardsapiURL() + "/card/authorization/user/" + userId;
429
429
  },
430
430
  cardsAddUsersDetails: function cardsAddUsersDetails() {
431
- return "https://5pyij203dl.execute-api.us-east-1.amazonaws.com/prod/card/authorization/company/4/roles";
431
+ return env.getCardsapiURL() + "/card/authorization/company/" + IUILocalStorageService.getCompanyId() + "/roles";
432
432
  }
433
433
  };
434
434
  var userListUrl = {
@@ -5488,7 +5488,7 @@ var UserAddEdit = function UserAddEdit(props) {
5488
5488
  }
5489
5489
  }
5490
5490
  }
5491
- }, [isCardsDetailsRendered, cardsDetails, isProfile, productAccess.cards]);
5491
+ }, [isCardsDetailsRendered, cardsDetails, isProfile, productAccess.cards, isCardsAdmin]);
5492
5492
  var asyncSelectRefs = React.useRef({
5493
5493
  emp_level: React.useRef(null),
5494
5494
  entity: React.useRef(null),
@@ -6518,7 +6518,7 @@ var UserAddEdit = function UserAddEdit(props) {
6518
6518
  if (!_isError) {
6519
6519
  if (isEditMode && editUserId || isProfile) {
6520
6520
  dispatch(showLoader());
6521
- if (cardApiflag) {
6521
+ if (cardApiflag && !isProfile) {
6522
6522
  fetch(userAddEditUrl.cardsEditUserDetails(editUserId), {
6523
6523
  method: 'POST',
6524
6524
  body: JSON.stringify(cardsPayload),