From 1fa05327bcea23d4d6409ba5843c36d2ca30b07d Mon Sep 17 00:00:00 2001
From: Sachin Chaurasiya
Date: Tue, 6 Sep 2022 13:45:22 +0530
Subject: [PATCH] Fix Glossary Page issue (#7249)
---
.../Glossary/GlossaryV1.component.tsx | 24 ++++++++++++-------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryV1.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryV1.component.tsx
index a9c685c5ccd..508e8247c61 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryV1.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryV1.component.tsx
@@ -309,8 +309,9 @@ const GlossaryV1 = ({
Delete
- Deleting this Glossary will permanently remove its metadata
- from OpenMetadata.
+ Deleting this{' '}
+ {isGlossaryActive ? 'Glossary' : 'GlossaryTerm'} will
+ permanently remove its metadata from OpenMetadata.
@@ -387,10 +388,13 @@ const GlossaryV1 = ({
useEffect(() => {
setDisplayName(selectedData?.displayName);
if (selectedData) {
- fetchGlossaryPermission();
- fetchGlossaryTermPermission();
+ if (isGlossaryActive) {
+ fetchGlossaryPermission();
+ } else {
+ fetchGlossaryTermPermission();
+ }
}
- }, [selectedData]);
+ }, [selectedData, isGlossaryActive]);
return glossaryList.length ? (
@@ -439,14 +443,18 @@ const GlossaryV1 = ({
onVisibleChange={setShowActions}>