diff --git a/openmetadata-ui/src/main/resources/ui/src/components/GlossaryTerms/GlossaryTermsV1.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/GlossaryTerms/GlossaryTermsV1.component.tsx index 2a401d95957..45f152bb24a 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/GlossaryTerms/GlossaryTermsV1.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/GlossaryTerms/GlossaryTermsV1.component.tsx @@ -629,6 +629,7 @@ const GlossaryTermsV1 = ({ {showRelatedTermsModal && ( ; onCancel: () => void; onSave: (terms: Array) => void; @@ -31,6 +32,7 @@ type RelatedTermsModalProp = { }; const RelatedTermsModal = ({ + glossaryTermFQN = '', relatedTerms, onCancel, onSave, @@ -56,9 +58,11 @@ const RelatedTermsModal = ({ setIsLoading(true); searchData(searchText, 1, PAGE_SIZE, '', '', '', SearchIndex.GLOSSARY) .then((res: SearchResponse) => { - const termResult = formatSearchGlossaryTermResponse( - res?.data?.hits?.hits || [] - ); + const termResult = ( + formatSearchGlossaryTermResponse( + res?.data?.hits?.hits || [] + ) as FormattedGlossaryTermData[] + ).filter((item) => item.fqdn !== glossaryTermFQN); const data = !searchText ? getSearchedTerms(termResult) : termResult; setOptions(data); })