mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-04 23:28:16 +00:00
Fix: If tier tag is not present show other tags. (#1254)
This commit is contained in:
parent
32b5361488
commit
9aa5eae398
@ -70,11 +70,9 @@ const TableDataCard: FunctionComponent<Props> = ({
|
|||||||
];
|
];
|
||||||
|
|
||||||
const getAssetTags = () => {
|
const getAssetTags = () => {
|
||||||
const assetTags = [
|
const assetTags = [...(tags as Array<string>)];
|
||||||
...(tags as Array<string>).filter((tag) => !tag.includes(tier)),
|
|
||||||
];
|
|
||||||
if (tier) {
|
if (tier) {
|
||||||
assetTags.unshift(tier);
|
assetTags.filter((tag) => !tag.includes(tier)).unshift(tier);
|
||||||
}
|
}
|
||||||
|
|
||||||
return [...new Set(assetTags)];
|
return [...new Set(assetTags)];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user