Fix for issue #24035 (#24154)

Co-authored-by: Himanshi Gupta <higupta@higupta.remote.csb>
This commit is contained in:
himanshi1099 2023-10-20 15:48:29 +05:30 committed by GitHub
parent 448e8ef9a3
commit b8eb051adb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,8 @@ const GroupTreeContextMenu = ({
const [createOpen, toggleCreateOpen] = useToggle();
const [moveOpen, toggleMoveOpen] = useToggle();
const [deleteOpen, toggleDeleteOpen] = useToggle();
const navigate = useNavigate();
const { realm } = useRealm();
return (
<>
@ -60,6 +62,7 @@ const GroupTreeContextMenu = ({
id={group.id}
rename={group}
refresh={() => {
navigate(toGroups({ realm }));
refresh();
}}
handleModalToggle={toggleRenameOpen}
@ -79,7 +82,10 @@ const GroupTreeContextMenu = ({
show={deleteOpen}
toggleDialog={toggleDeleteOpen}
selectedRows={[group]}
refresh={refresh}
refresh={() => {
navigate(toGroups({ realm }));
refresh();
}}
/>
<Dropdown
toggle={<KebabToggle onToggle={toggleOpen} />}