@itilite/iui-user-management 1.4.766 → 1.4.768
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 +2 -21
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -21
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -6211,26 +6211,6 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6211
6211
|
console.log("errorrr", error);
|
|
6212
6212
|
});
|
|
6213
6213
|
};
|
|
6214
|
-
var fetchLoggedUserCardsDetails = function fetchLoggedUserCardsDetails() {
|
|
6215
|
-
fetch(userAddEditUrl.cardsAddUsersDetails(), {
|
|
6216
|
-
method: 'GET',
|
|
6217
|
-
headers: {
|
|
6218
|
-
'Content-Type': 'application/json',
|
|
6219
|
-
'authorization': "Bearer " + IUILocalStorageService$5.getAccessToken()
|
|
6220
|
-
}
|
|
6221
|
-
}).then(function (response) {
|
|
6222
|
-
return response.json();
|
|
6223
|
-
}).then(function (res) {
|
|
6224
|
-
var _res$roles2;
|
|
6225
|
-
if (res !== null && res !== void 0 && (_res$roles2 = res.roles) !== null && _res$roles2 !== void 0 && _res$roles2.length) {
|
|
6226
|
-
dispatch(setCardsDetails(res));
|
|
6227
|
-
} else {
|
|
6228
|
-
IUIToastMessageService$6.warningNotify('Opps, Something went wrong.');
|
|
6229
|
-
}
|
|
6230
|
-
})["catch"](function (error) {
|
|
6231
|
-
console.log("errorrr", error);
|
|
6232
|
-
});
|
|
6233
|
-
};
|
|
6234
6214
|
useEffect(function () {
|
|
6235
6215
|
var countryObject = countryContactCode.find(function (t) {
|
|
6236
6216
|
return t.dial_code === countryDialCode;
|
|
@@ -6922,10 +6902,11 @@ var UserAddEdit = function UserAddEdit(props) {
|
|
|
6922
6902
|
}
|
|
6923
6903
|
}, [isTokenVerified]);
|
|
6924
6904
|
useEffect(function () {
|
|
6905
|
+
console.log(isProfile, 'isProfile', id, 'id', editUserId, 'editUserId');
|
|
6925
6906
|
if (isRendered === true) {
|
|
6926
6907
|
renderFields === null || renderFields === void 0 ? void 0 : renderFields.products.forEach(function (prod) {
|
|
6927
6908
|
if ((prod === null || prod === void 0 ? void 0 : prod.name) === 'card') {
|
|
6928
|
-
|
|
6909
|
+
fetchEditUserCardsDetails(isProfile ? id : editUserId);
|
|
6929
6910
|
}
|
|
6930
6911
|
});
|
|
6931
6912
|
setPersonalInfoInput(_extends({}, personalInfoInput, {
|