Commit f89ef7b8 by zhaochengxiang

bug fix

parent 260fff65
......@@ -255,8 +255,6 @@ const AssetTable = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
console.log('node type', nodeType)
useEffect(() => {
if (nodeId !== null && nodeId !== undefined) {
setSelectItem({});
......@@ -290,7 +288,7 @@ const AssetTable = (props) => {
getFilterElementsGroupThenGetDataAssets();
}
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [ keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeType, nodeId ])
}, [ keyword, pagination, elementsChanged, assetActionChanged, recursive, fullSearch, currentElementId, nodeId ])
useEffect(() => {
if (reference === AssetRecycleReference) {
......
......@@ -32,6 +32,8 @@ const AssetManage = (props) => {
const { assetId, assetDirId } = assetParams;
const onTreeSelect = (value, type, level, allowdLoadDataAsset) => {
console.log('value', value)
console.log('type', type)
setNodeId(value);
setNodeType(type);
setNodeLevel(level);
......@@ -74,8 +76,6 @@ const AssetManage = (props) => {
'middle-fullscreen': assetFullScreen
});
console.log('node type', nodeType)
return (
<div className={classes}>
<ResizableBox
......
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