This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch atlas-2.5
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/atlas-2.5 by this push:
new 45e327ca9 ATLAS-5038: [React UI] Tag assignment fails on direct
navigation to Term detail page (#355)
45e327ca9 is described below
commit 45e327ca9935d75bc31169c6c09e6cb768600ffc
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}