This is an automated email from the ASF dual-hosted git repository.

ppawar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new 2458e62f3 ATLAS-5038: [React UI] Tag assignment fails on direct 
navigation to Term detail page (#355)
2458e62f3 is described below

commit 2458e62f327fff90afeda46dc0e5132951ea52c4
Author: Brijesh Bhalala <[email protected]>
AuthorDate: Thu May 29 11:32:14 2025 +0530

    ATLAS-5038: [React UI] Tag assignment fails on direct navigation to Term 
detail page (#355)
---
 dashboard/src/views/DetailPage/DetailPageAttributes.tsx | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dashboard/src/views/DetailPage/DetailPageAttributes.tsx 
b/dashboard/src/views/DetailPage/DetailPageAttributes.tsx
index 63aacef98..c04e57947 100644
--- a/dashboard/src/views/DetailPage/DetailPageAttributes.tsx
+++ b/dashboard/src/views/DetailPage/DetailPageAttributes.tsx
@@ -41,7 +41,6 @@ import { removeTermorCategory } from 
"@api/apiMethods/glossaryApiMethod";
 import { StyledPaper } from "@utils/Muiutils";
 import ShowMoreView from "@components/ShowMore/ShowMoreView";
 import AddCircleOutlineIcon from "@mui/icons-material/AddCircleOutline";
-import { useAppSelector } from "@hooks/reducerHook";
 import AddTag from "@views/Classification/AddTag";
 import AddTagAttributes from "@views/Classification/AddTagAttributes";
 import AssignCategory from "@views/Glossary/AssignCategory";
@@ -69,11 +68,7 @@ const DetailPageAttribute = ({
   const [attributeModal, setAttributeModal] = useState<boolean>(false);
   const [openAddTermModal, setOpenAddTermModal] = useState<boolean>(false);
 
-  const { detailPageData }: any = useAppSelector(
-    (state: any) => state.detailPage
-  );
   const [categoryModal, setCategoryModal] = useState<boolean>(false);
-  const { entity }: any = detailPageData || {};
 
   const handleCloseTermModal = () => {
     setOpenAddTermModal(false);
@@ -653,7 +648,7 @@ const DetailPageAttribute = ({
         <AddTag
           open={openAddTagModal}
           isAdd={true}
-          entityData={entity}
+          entityData={data}
           onClose={handleCloseAddTagModal}
           setUpdateTable={undefined}
           setRowSelection={undefined}

Reply via email to