@itilite/iui-user-management 0.4.62 → 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
@@ -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),