Commit 549e42eb by zhaochengxiang

bug fix

parent 6e7955b4
...@@ -44,9 +44,11 @@ const UpdateDirectoryModal = (props) => { ...@@ -44,9 +44,11 @@ const UpdateDirectoryModal = (props) => {
const [ loadingUsers, setLoadingUsers ] = useState(false); const [ loadingUsers, setLoadingUsers ] = useState(false);
useEffect(() => { useEffect(() => {
if (visible && dirId) { if (visible) {
getUsers(); getUsers();
getDirectory(); if (dirId) {
getDirectory();
}
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [ visible ]) }, [ 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