From 152a62b72a1723763071d2ba0dde6b2918a844f2 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Wed, 1 Jun 2022 11:12:16 +0200 Subject: [PATCH] Improved search sub links / breadcrumbs (#2721) --- src/components/bread-crumb/GroupBreadCrumbs.tsx | 2 +- src/groups/GroupsSection.tsx | 5 ++++- src/groups/SearchGroups.tsx | 17 ++--------------- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/components/bread-crumb/GroupBreadCrumbs.tsx b/src/components/bread-crumb/GroupBreadCrumbs.tsx index 217f83a6c5..918a385410 100644 --- a/src/components/bread-crumb/GroupBreadCrumbs.tsx +++ b/src/components/bread-crumb/GroupBreadCrumbs.tsx @@ -33,7 +33,7 @@ export const GroupBreadCrumbs = () => { {!isLastGroup && ( setSubGroups([{ name: t("searchGroups"), id: "search" }]), - [] - ); - const deleteTerm = (id: string) => { const index = searchTerms.indexOf(id); searchTerms.splice(index, 1); @@ -69,13 +62,7 @@ export default function SearchGroups() { if (!isManager) return {group.name}; return ( - - setSubGroups([{ name: t("searchGroups"), id: "search" }, group]) - } - > + {group.name} );