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

pawarprasad123 pushed a commit to branch atlas-2.6
in repository https://gitbox.apache.org/repos/asf/atlas.git

commit 1f37062e91fd9d2e9bc56574f2fb0591c6875a5e
Author: Brijesh Bhalala <[email protected]>
AuthorDate: Tue Jun 9 15:51:50 2026 +0530

    ATLAS-5299: Atlas React UI: Create Subcategory API Fails Due to Missing 
parentCategoryId in UI Payload (#649)
    ( cherry-picked form commit 0812427f01bee35247f101a9ced0793597f38387)
---
 dashboard/src/views/Glossary/AddUpdateCategoryForm.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dashboard/src/views/Glossary/AddUpdateCategoryForm.tsx 
b/dashboard/src/views/Glossary/AddUpdateCategoryForm.tsx
index bd9084861..7a754544d 100644
--- a/dashboard/src/views/Glossary/AddUpdateCategoryForm.tsx
+++ b/dashboard/src/views/Glossary/AddUpdateCategoryForm.tsx
@@ -39,7 +39,7 @@ const AddUpdateCategoryForm = (props: {
   dataObj: any;
 }) => {
   const { open, onClose, isAdd, node, dataObj } = props;
-  const { id, parent, types } = node || {};
+  const { id, parent, types, cGuid } = node || {};
   const { guid: glossaryTypeGuid }: any = useParams();
   const dispatchApi = useAppDispatch();
   const toastId: any = useRef(null);
@@ -103,7 +103,7 @@ const AddUpdateCategoryForm = (props: {
     }
     data["name"] = name;
     if (types == "child") {
-      data["parentCategory"] = { ["categoryGuid"]: glossaryTypeGuid };
+      data["parentCategory"] = { ["categoryGuid"]: cGuid || glossaryTypeGuid };
     }
     data["shortDescription"] = !isEmpty(shortDescription)
       ? shortDescription

Reply via email to