mario-core 2.9.94-beta → 2.9.95-beta

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.
@@ -7125,15 +7125,12 @@ var UserDetail = function UserDetail() {
7125
7125
  return;
7126
7126
  }
7127
7127
 
7128
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR, ROLES.SECONDARY_TEACHER].includes(role)) {
7128
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7129
7129
  setFieldValue("roles", [role]);
7130
7130
  return;
7131
7131
  }
7132
7132
 
7133
- var teacherAssistantRoles = values.roles.filter(function (item) {
7134
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR, ROLES.SECONDARY_TEACHER].includes(item);
7135
- });
7136
- setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7133
+ setFieldValue("roles", [].concat(values.roles, [role]));
7137
7134
  }, [values.roles]);
7138
7135
  return React.createElement("div", {
7139
7136
  className: "animated fadeIn detail-buttons-padding"