From 807cac35d9c21f342109cdf36b28c369cf007570 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 1 May 2024 08:05:47 -0600 Subject: [PATCH] Show all is optional --- web/src/components/filter/ReviewFilterGroup.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/src/components/filter/ReviewFilterGroup.tsx b/web/src/components/filter/ReviewFilterGroup.tsx index 76da1f86f..ab597c85a 100644 --- a/web/src/components/filter/ReviewFilterGroup.tsx +++ b/web/src/components/filter/ReviewFilterGroup.tsx @@ -575,8 +575,8 @@ type GeneralFilterContentProps = { selectedLabels: string[] | undefined; currentLabels: string[] | undefined; currentSeverity?: ReviewSeverity; - showAll: boolean; - setShowAll: (showAll: boolean) => void; + showAll?: boolean; + setShowAll?: (showAll: boolean) => void; updateLabelFilter: (labels: string[] | undefined) => void; setCurrentLabels: (labels: string[] | undefined) => void; onClose: () => void; @@ -595,18 +595,20 @@ export function GeneralFilterContent({ return ( <>
- {currentSeverity && ( + {currentSeverity && setShowAll && (