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 f12320da9 ATLAS-5112: [REACT UI] Double clicking on Basic Search under
Custom Filters with no saved filters throws errors. (#449) (cherry picked from
0754a86c41fdab8879f73e41f96e49c4567c6355)
f12320da9 is described below
commit f12320da90693689baabe5ac56502db71321c5be
Author: Prasad Pawar <[email protected]>
AuthorDate: Thu Sep 25 17:48:41 2025 +0530
ATLAS-5112: [REACT UI] Double clicking on Basic Search under Custom Filters
with no saved filters throws errors. (#449)
(cherry picked from 0754a86c41fdab8879f73e41f96e49c4567c6355)
---
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) ||