diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TagsUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/TagsUtils.tsx index 2f1acd15bce..43c33c93e4b 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/TagsUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/TagsUtils.tsx @@ -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) => { event.preventDefault();