Commit 260fff65 by zhaochengxiang

bug fix

parent 13956d86
......@@ -844,11 +844,8 @@ const AssetManageTree = (props) => {
}
setCurrentDirId();
onSelect?.(null, null, null, false);
setTimeout(() => {
onSelect?.('', '', null, false);
getAllDirectoryAsTree(true)
}, 100)
getAllDirectoryAsTree(true)
}}
style={{ width: 100 }}
>
......
......@@ -286,7 +286,7 @@ const AssetTable = (props) => {
}, [timestamp])
useEffect(() => {
if (reference !== AssetRecycleReference && nodeId && nodeType) {
if (reference !== AssetRecycleReference && nodeId) {
getFilterElementsGroupThenGetDataAssets();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
......
......@@ -624,11 +624,13 @@ const AssetTree = (props) => {
LocalStorage.set(`templateType-${appId}`, val);
listSubject.next({ msg: 'templateChange' });
setCurrentDirId();
onSelect?.(null, null, false);
setTimeout(() => {
onSelect?.('', '', false);
getAllDirectoryAsTree(true)
}, 100)
getAllDirectoryAsTree(true)
// onSelect?.(null, null, false);
// setTimeout(() => {
// onSelect?.('', '', false);
// getAllDirectoryAsTree(true)
// }, 100)
}}
style={{ width: 100 }}
>
......
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