From bb156297f69098ae0b3de581c8aa6e96a11e98cc Mon Sep 17 00:00:00 2001 From: karanh37 <33024356+karanh37@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:35:01 +0530 Subject: [PATCH] fix: domain assignment for glossary term (#13793) --- .../GlossaryDetailsRightPanel.component.tsx | 4 +++- .../pages/Glossary/GlossaryPage/GlossaryPage.component.tsx | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryDetailsRightPanel/GlossaryDetailsRightPanel.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryDetailsRightPanel/GlossaryDetailsRightPanel.component.tsx index b55ad52ddf2d..e9c64eaaff36 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryDetailsRightPanel/GlossaryDetailsRightPanel.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryDetailsRightPanel/GlossaryDetailsRightPanel.component.tsx @@ -208,7 +208,9 @@ const GlossaryDetailsRightPanel = ({ domain={selectedData.domain} entityFqn={selectedData.fullyQualifiedName ?? ''} entityId={selectedData.id ?? ''} - entityType={EntityType.GLOSSARY} + entityType={ + isGlossary ? EntityType.GLOSSARY : EntityType.GLOSSARY_TERM + } hasPermission={permissions.EditAll} /> diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryPage/GlossaryPage.component.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryPage/GlossaryPage.component.tsx index c3955706f7d2..0c954ec69b23 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryPage/GlossaryPage.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryPage/GlossaryPage.component.tsx @@ -143,7 +143,7 @@ const GlossaryPage = () => { try { const response = await getGlossaryTermByFQN( glossaryFqn, - 'relatedTerms,reviewers,tags,owner,children,votes' + 'relatedTerms,reviewers,tags,owner,children,votes,domain' ); setSelectedData(response); } catch (error) {