mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-25 17:04:54 +00:00
This commit is contained in:
parent
44df02010a
commit
de2b2c6428
@ -13,7 +13,7 @@
|
||||
import { Select, SelectProps, Space, Tooltip, Typography } from 'antd';
|
||||
import { DefaultOptionType } from 'antd/lib/select';
|
||||
import { AxiosError } from 'axios';
|
||||
import { debounce } from 'lodash';
|
||||
import { debounce, isEmpty } from 'lodash';
|
||||
import React, { FC, useCallback, useMemo, useState } from 'react';
|
||||
import Loader from '../../components/Loader/Loader';
|
||||
import { FQN_SEPARATOR_CHAR } from '../../constants/char.constants';
|
||||
@ -70,8 +70,9 @@ const AsyncSelectList: FC<AsyncSelectListProps> = ({
|
||||
.map((tag) => {
|
||||
const displayName = tag.data?.displayName;
|
||||
const parts = Fqn.split(tag.label);
|
||||
const lastPartOfTag =
|
||||
displayName ?? parts.slice(-1).join(FQN_SEPARATOR_CHAR);
|
||||
const lastPartOfTag = isEmpty(displayName)
|
||||
? parts.slice(-1).join(FQN_SEPARATOR_CHAR)
|
||||
: displayName;
|
||||
parts.pop();
|
||||
|
||||
return {
|
||||
|
@ -97,7 +97,7 @@ const TagsV1 = ({
|
||||
const tagColorBar = useMemo(
|
||||
() =>
|
||||
color ? (
|
||||
<div className="tag-color-bar" style={{ background: color }} />
|
||||
<div className="tag-color-bar" style={{ borderColor: color }} />
|
||||
) : null,
|
||||
[color]
|
||||
);
|
||||
|
@ -44,9 +44,7 @@
|
||||
}
|
||||
|
||||
.tag-color-bar {
|
||||
width: 5px;
|
||||
height: auto;
|
||||
background: @tag-background-color;
|
||||
border-left: 5px solid @tag-background-color;
|
||||
}
|
||||
|
||||
.tags-label {
|
||||
|
Loading…
x
Reference in New Issue
Block a user