fix crash on add user to group in user details (#2523)
This commit is contained in:
committed by
GitHub
parent
d713dc4933
commit
77bcdcfb08
@@ -33,6 +33,7 @@ import AddMembersToGroup from "../../../icons/AddMembersToGroupIcon";
|
||||
import { encodeURLString } from "../../../common/utils";
|
||||
import { setModalErrorSnackMessage } from "../../../systemSlice";
|
||||
import { useAppDispatch } from "../../../store";
|
||||
import Box from "@mui/material/Box";
|
||||
|
||||
const styles = (theme: Theme) =>
|
||||
createStyles({
|
||||
@@ -171,12 +172,19 @@ const ChangeUserGroups = ({
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
<Grid item xs={12} className={classes.buttonContainer}>
|
||||
<Box
|
||||
sx={{
|
||||
display: "flex",
|
||||
gap: 2,
|
||||
alignItems: "center",
|
||||
justifyContent: "flex-end",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<Button
|
||||
id={"clear-change-user-groups"}
|
||||
type="button"
|
||||
variant="regular"
|
||||
style={classes.spacerRight}
|
||||
onClick={resetForm}
|
||||
label={"Clear"}
|
||||
/>
|
||||
@@ -188,7 +196,7 @@ const ChangeUserGroups = ({
|
||||
disabled={addLoading || !sendEnabled}
|
||||
label={"Save"}
|
||||
/>
|
||||
</Grid>
|
||||
</Box>
|
||||
{addLoading && (
|
||||
<Grid item xs={12}>
|
||||
<LinearProgress />
|
||||
|
||||
Reference in New Issue
Block a user