mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
fix: initialize selected
with group_data.users
when GroupEdit
component mounts
This commit is contained in:
@@ -42,6 +42,10 @@ const GroupEdit = (props) => {
|
|||||||
}
|
}
|
||||||
}, [location]);
|
}, [location]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setSelected(group_data.users);
|
||||||
|
}, []);
|
||||||
|
|
||||||
const { group_data } = location.state || {};
|
const { group_data } = location.state || {};
|
||||||
if (!group_data) return <div></div>;
|
if (!group_data) return <div></div>;
|
||||||
const [propobject, setProp] = useState(group_data.properties);
|
const [propobject, setProp] = useState(group_data.properties);
|
||||||
|
Reference in New Issue
Block a user