mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-19 14:37:52 +00:00
fix the glossary tag breaking in bulk edit and import (#20845)
This commit is contained in:
parent
f976bc2c36
commit
82ba5cb532
@ -15,7 +15,7 @@ import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
|
||||
import { Tag as AntdTag, Tooltip, Typography } from 'antd';
|
||||
import { AxiosError } from 'axios';
|
||||
import i18next from 'i18next';
|
||||
import { omit } from 'lodash';
|
||||
import { isString, omit } from 'lodash';
|
||||
import { EntityTags } from 'Models';
|
||||
import type { CustomTagProps } from 'rc-select/lib/BaseSelect';
|
||||
import React from 'react';
|
||||
@ -225,7 +225,7 @@ export const getTagPlaceholder = (isGlossaryType: boolean): string =>
|
||||
|
||||
export const tagRender = (customTagProps: CustomTagProps) => {
|
||||
const { label, onClose } = customTagProps;
|
||||
const tagLabel = getTagDisplay(label as string);
|
||||
const tagLabel = isString(label) ? getTagDisplay(label) : label;
|
||||
|
||||
const onPreventMouseDown = (event: React.MouseEvent<HTMLSpanElement>) => {
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user