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,
|
||||
owner = '--',
|
||||
description,
|
||||
tier = 'No Tier',
|
||||
tier = '',
|
||||
usage,
|
||||
serviceType,
|
||||
fullyQualifiedName,
|
||||
@ -66,9 +66,18 @@ const TableDataCard: FunctionComponent<Props> = ({
|
||||
? getUsagePercentile(usage)
|
||||
: 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 (
|
||||
<div
|
||||
className="tw-bg-white tw-p-3 tw-border tw-border-main tw-rounded-md"
|
||||
@ -91,7 +100,7 @@ const TableDataCard: FunctionComponent<Props> = ({
|
||||
<TableDataCardBody
|
||||
description={description || ''}
|
||||
extraInfo={OtherDetails}
|
||||
tags={[...new Set(tags)]}
|
||||
tags={getAssetTags()}
|
||||
/>
|
||||
</div>
|
||||
{matches && matches.length > 0 ? (
|
||||
|
Loading…
x
Reference in New Issue
Block a user