Skip to content

Commit

Permalink
Reset button should reset current zones too
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Jun 11, 2024
1 parent 43a4007 commit 40124d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/filter/ReviewFilterGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ type GeneralFilterContentProps = {
updateLabelFilter: (labels: string[] | undefined) => void;
setCurrentLabels: (labels: string[] | undefined) => void;
updateZoneFilter?: (zones: string[] | undefined) => void;
setCurrentZones?: (zones: string[] | undefined) => void;
setCurrentZones: (zones: string[] | undefined) => void;
onClose: () => void;
};
export function GeneralFilterContent({
Expand Down Expand Up @@ -795,6 +795,7 @@ export function GeneralFilterContent({
<Button
onClick={() => {
setCurrentLabels(undefined);
setCurrentZones(undefined);
updateLabelFilter(undefined);
}}
>
Expand Down

0 comments on commit 40124d7

Please sign in to comment.