mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-29 01:32:01 +00:00
* Fix : Fixing #2299 Able to add the tag itself as it's associated tag. * Fixing #2311 UI struct text in dataTypeDisplay looks like a link
This commit is contained in:
parent
b0beac243b
commit
a41dd01aaa
@ -377,9 +377,7 @@ const EntityTable = ({
|
||||
<PopOver
|
||||
html={
|
||||
<div className="tw-break-words">
|
||||
<RichTextEditorPreviewer
|
||||
markdown={cell.value.toLowerCase()}
|
||||
/>
|
||||
<span>{cell.value.toLowerCase()}</span>
|
||||
</div>
|
||||
}
|
||||
position="bottom"
|
||||
|
||||
@ -15,7 +15,7 @@ import { AxiosError, AxiosResponse } from 'axios';
|
||||
import classNames from 'classnames';
|
||||
import { isUndefined, toLower } from 'lodash';
|
||||
import { EntityTags, FormErrorData } from 'Models';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import {
|
||||
createTag,
|
||||
@ -68,6 +68,12 @@ const TagsPage = () => {
|
||||
const [errorDataCategory, setErrorDataCategory] = useState<FormErrorData>();
|
||||
const [errorDataTag, setErrorDataTag] = useState<FormErrorData>();
|
||||
|
||||
const getTags = useCallback(() => {
|
||||
return getTaglist(categories).filter(
|
||||
(tag) => editTag?.fullyQualifiedName !== tag
|
||||
);
|
||||
}, [currentCategory, editTag]);
|
||||
|
||||
const fetchCategories = () => {
|
||||
setIsLoading(true);
|
||||
getTagCategories('usageCount')
|
||||
@ -440,9 +446,7 @@ const TagsPage = () => {
|
||||
tagFQN: tag,
|
||||
})) || []
|
||||
}
|
||||
tagList={
|
||||
getTaglist(categories) as Array<string>
|
||||
}
|
||||
tagList={getTags()}
|
||||
onCancel={() => {
|
||||
handleTagSelection();
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user