mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-12 11:07:20 +00:00
parent
3494a12647
commit
3179680d57
@ -48,7 +48,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
name,
|
name,
|
||||||
owner = '--',
|
owner = '--',
|
||||||
description,
|
description,
|
||||||
tier = 'No Tier',
|
tier = '',
|
||||||
usage,
|
usage,
|
||||||
serviceType,
|
serviceType,
|
||||||
fullyQualifiedName,
|
fullyQualifiedName,
|
||||||
@ -66,9 +66,18 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
? getUsagePercentile(usage)
|
? getUsagePercentile(usage)
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
{ key: 'Tier', value: tier },
|
{ key: 'Tier', value: tier ? tier : 'No Tier' },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const getAssetTags = () => {
|
||||||
|
const assetTags = [...(tags as Array<string>)];
|
||||||
|
if (tier) {
|
||||||
|
assetTags.unshift(tier);
|
||||||
|
}
|
||||||
|
|
||||||
|
return [...new Set(assetTags)];
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="tw-bg-white tw-p-3 tw-border tw-border-main tw-rounded-md"
|
className="tw-bg-white tw-p-3 tw-border tw-border-main tw-rounded-md"
|
||||||
@ -91,7 +100,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
<TableDataCardBody
|
<TableDataCardBody
|
||||||
description={description || ''}
|
description={description || ''}
|
||||||
extraInfo={OtherDetails}
|
extraInfo={OtherDetails}
|
||||||
tags={[...new Set(tags)]}
|
tags={getAssetTags()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{matches && matches.length > 0 ? (
|
{matches && matches.length > 0 ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user