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

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

commit 8ca9ae20367c9041f98a835edff5f3577cf7d0f9
Author: Prasad Pawar <[email protected]>
AuthorDate: Mon Sep 22 13:10:59 2025 +0530

    ATLAS-5112: [REACT UI] Double clicking on Basic Search under Custom Filters 
with no saved filters throws errors.
---
 dashboard/src/views/SideBar/SideBarTree/CustomFiltersTree.tsx | 4 ++--
 dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx       | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dashboard/src/views/SideBar/SideBarTree/CustomFiltersTree.tsx 
b/dashboard/src/views/SideBar/SideBarTree/CustomFiltersTree.tsx
index 0d56b2b9b..c87944861 100644
--- a/dashboard/src/views/SideBar/SideBarTree/CustomFiltersTree.tsx
+++ b/dashboard/src/views/SideBar/SideBarTree/CustomFiltersTree.tsx
@@ -119,10 +119,10 @@ const CustomFiltersTree = ({ sideBarOpen, searchTerm }: 
Props) => {
       emptySearchTypes.forEach((typeObj) => {
         if (!existingSearchTypes.includes(typeObj.searchType)) {
           savedSearchTypeArr.push({
-            name: typeObj.searchType,
+            name: typeObj.name,
             children: [],
             types: "parent",
-            parent: typeObj.searchType
+            parent: typeObj.searchType,
           });
         }
       });
diff --git a/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx 
b/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
index 97ec42c1d..49a0d1aff 100644
--- a/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
+++ b/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
@@ -557,6 +557,9 @@ const BarTreeView: FC<{
   };
 
   const shouldSetSearchParams = (node: TreeNode, treeName: string) => {
+    if (treeName === "CustomFilters") {
+      return node.types === "child";
+    }
     return (
       node.children === undefined ||
       isEmpty(node.children) ||

Reply via email to