From b68db2c7875c7dd5fa27c077be6b557076e5125b Mon Sep 17 00:00:00 2001 From: johannbm Date: Wed, 25 Oct 2023 11:55:44 +0200 Subject: [PATCH] use explicit search param instead of if there is a search param at all --- apps/frontend/src/pages/membership/MembershipsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/pages/membership/MembershipsPage.tsx b/apps/frontend/src/pages/membership/MembershipsPage.tsx index e60d3fd54..049d2760e 100644 --- a/apps/frontend/src/pages/membership/MembershipsPage.tsx +++ b/apps/frontend/src/pages/membership/MembershipsPage.tsx @@ -85,7 +85,7 @@ export function MembershipsPage() { function ShowCorrectExportButton() { const { roleAsList, productAreaIdAsList, clusterIdAsList, teamIdAsList } = useGetParsedSearchParameters(); - const { search } = useLocation(); + const { showUniqueMemberships } = useGetParsedSearchParameters(); if (roleAsList.length === 1) { return ; } @@ -102,7 +102,7 @@ function ShowCorrectExportButton() { return ; } - if (!search) { + if (!showUniqueMemberships) { return ; }