diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000..0318ea2585 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,12 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Environment-dependent path to Maven home directory +/mavenHomeManager.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +.idea/ +*.iml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000000..d355d4a6e3 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000000..79ee123c2b --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000000..03d9549ea8 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000000..639900d13c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000000..98f2423352 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000000..35eb1ddfbb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/components/users/partials/modal/GroupDetails.tsx b/src/components/users/partials/modal/GroupDetails.tsx index ab05490851..4c71b6daa5 100644 --- a/src/components/users/partials/modal/GroupDetails.tsx +++ b/src/components/users/partials/modal/GroupDetails.tsx @@ -36,8 +36,10 @@ const GroupDetails: React.FC<{ } const initialValues = { - ...groupDetails, - roles: roleNames, + ...groupDetails, + roles: groupDetails.roles + .filter((role: string) => !role.startsWith("ROLE_GROUP")) + .map((role: any) => ({ name: role })), }; // information about tabs @@ -82,6 +84,7 @@ const GroupDetails: React.FC<{ initialValues={initialValues} validationSchema={EditGroupSchema} onSubmit={(values) => handleSubmit(values)} + enableReinitialize={true} > {(formik) => ( <> @@ -92,6 +95,7 @@ const GroupDetails: React.FC<{ {/* Navigation buttons and validation */}