Skip to content

Commit

Permalink
Reset year options when all attributes unselected.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Oct 4, 2023
1 parent 06e1dc7 commit 54f53d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/years-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const YearsOptions: React.FC<IProps> = (props) => {
const selectedAttrKeys = attrKeys.filter((key) => selectedOptions[key].length > 0);

if (!selectedAttrKeys.length) {
setAvailableYearOptions([]);
return;
}

Expand Down

0 comments on commit 54f53d6

Please sign in to comment.