Commit 549e42eb by zhaochengxiang

bug fix

parent 6e7955b4
......@@ -44,9 +44,11 @@ const UpdateDirectoryModal = (props) => {
const [ loadingUsers, setLoadingUsers ] = useState(false);
useEffect(() => {
if (visible && dirId) {
if (visible) {
getUsers();
getDirectory();
if (dirId) {
getDirectory();
}
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [ visible ])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment