Keep as optional prop

This commit is contained in:
Josh Hawkins 2024-06-11 09:54:35 -05:00
parent bb359f67a4
commit ebfc778cf3

View File

@ -643,7 +643,7 @@ type GeneralFilterContentProps = {
updateLabelFilter: (labels: string[] | undefined) => void; updateLabelFilter: (labels: string[] | undefined) => void;
setCurrentLabels: (labels: string[] | undefined) => void; setCurrentLabels: (labels: string[] | undefined) => void;
updateZoneFilter?: (zones: string[] | undefined) => void; updateZoneFilter?: (zones: string[] | undefined) => void;
setCurrentZones: (zones: string[] | undefined) => void; setCurrentZones?: (zones: string[] | undefined) => void;
onClose: () => void; onClose: () => void;
}; };
export function GeneralFilterContent({ export function GeneralFilterContent({
@ -795,7 +795,7 @@ export function GeneralFilterContent({
<Button <Button
onClick={() => { onClick={() => {
setCurrentLabels(undefined); setCurrentLabels(undefined);
setCurrentZones(undefined); setCurrentZones?.(undefined);
updateLabelFilter(undefined); updateLabelFilter(undefined);
}} }}
> >