@itilite/iui-user-management 0.4.23 → 0.4.24

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.
@@ -5884,6 +5884,8 @@ var UserAddEdit = function UserAddEdit(props) {
5884
5884
  var _config$routes2, _config$routes2$users, _config$routes2$users2;
5885
5885
  (config === null || config === void 0 ? void 0 : (_config$routes2 = config.routes) === null || _config$routes2 === void 0 ? void 0 : (_config$routes2$users = _config$routes2.users) === null || _config$routes2$users === void 0 ? void 0 : (_config$routes2$users2 = _config$routes2$users.list) === null || _config$routes2$users2 === void 0 ? void 0 : _config$routes2$users2.path) && history.push(config.routes.users.list.path);
5886
5886
  }
5887
+ setFilesForDelete([]);
5888
+ setProfilePicDelete([]);
5887
5889
  })["catch"](function (err) {
5888
5890
  if (typeof err === 'object') {
5889
5891
  if (err.country_code) {
@@ -6187,6 +6189,9 @@ var UserAddEdit = function UserAddEdit(props) {
6187
6189
  if (!p.visibility) {
6188
6190
  return null;
6189
6191
  }
6192
+ if (p.name === 'profile_pic' && productAccess.expense) {
6193
+ return null;
6194
+ }
6190
6195
  return /*#__PURE__*/React.createElement(IUIGrid, {
6191
6196
  item: true,
6192
6197
  sm: 12,