You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pp...@apache.org on 2025/09/22 07:41:32 UTC

(atlas) branch ATLAS-5112 created (now 8ca9ae203)

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

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


      at 8ca9ae203 ATLAS-5112: [REACT UI] Double clicking on Basic Search under Custom Filters with no saved filters throws errors.

This branch includes the following new commits:

     new 8ca9ae203 ATLAS-5112: [REACT UI] Double clicking on Basic Search under Custom Filters with no saved filters throws errors.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(atlas) 01/01: ATLAS-5112: [REACT UI] Double clicking on Basic Search under Custom Filters with no saved filters throws errors.

Posted by pp...@apache.org.
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 <pr...@freestoneinfotech.com>
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) ||