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