@bigbinary/neeto-team-members-frontend 3.2.0-beta2 → 3.2.0-beta3

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
@@ -5104,7 +5104,6 @@ var Roles = function Roles(_ref) {
5104
5104
  isNewRolePaneOpen = _useState4[0],
5105
5105
  setIsNewRolePaneOpen = _useState4[1];
5106
5106
  var _useFetchRoles = useFetchRoles({
5107
- onSuccess: setModifiedRoles,
5108
5107
  enabled: isViewPermissionGranted
5109
5108
  }),
5110
5109
  _useFetchRoles$data = _useFetchRoles.data,
@@ -5140,6 +5139,9 @@ var Roles = function Roles(_ref) {
5140
5139
  var handleReset = function handleReset() {
5141
5140
  return setModifiedRoles(roles);
5142
5141
  };
5142
+ useEffect(function () {
5143
+ setModifiedRoles(roles);
5144
+ }, [roles]);
5143
5145
  if (isRolesLoading || isPermissionsLoading) {
5144
5146
  return /*#__PURE__*/jsx("div", {
5145
5147
  className: "ntm-members-page-loader",