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

pawarprasad123 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 0812427f0 ATLAS-5299: Atlas React UI: Create Subcategory API Fails Due 
to Missing parentCategoryId in UI Payload (#649)
0812427f0 is described below

commit 0812427f01bee35247f101a9ced0793597f38387
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)
---
 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