Commit 15d41d4b by zhaochengxiang

bug fix

parent 984435e7
...@@ -4,7 +4,7 @@ import { Spin, Descriptions, Divider } from "antd"; ...@@ -4,7 +4,7 @@ import { Spin, Descriptions, Divider } from "antd";
import { getAssetRange, getAssetType, highlightSearchContentByTerms } from '../../../../util'; import { getAssetRange, getAssetType, highlightSearchContentByTerms } from '../../../../util';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
import { ElementItem } from "./AssetAction"; import { ElementItem } from "./AssetAction";
import { AssetManageReference } from "../../../../util/constant"; import { AssetManageReference, ResourceManageReference } from "../../../../util/constant";
const AssetDetail = (props)=>{ const AssetDetail = (props)=>{
...@@ -145,7 +145,7 @@ const AssetDetail = (props)=>{ ...@@ -145,7 +145,7 @@ const AssetDetail = (props)=>{
(_currentValues||[]).map((item, index) => { (_currentValues||[]).map((item, index) => {
return ( return (
<Descriptions.Item label={item.name||''} key={index}> <Descriptions.Item label={item.name||''} key={index}>
<ElementItem type={AssetManageReference} element={item} value={item.value} terms={terms} /> <ElementItem reference={(asset?.dataAssetType==='dataAsset')?AssetManageReference:ResourceManageReference} element={item} value={item.value} terms={terms} />
</Descriptions.Item> </Descriptions.Item>
); );
}) })
......
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