Skip to content

Commit

Permalink
Unsort years.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Oct 5, 2023
1 parent 85bab1c commit 58c13b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/years-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export const YearsOptions: React.FC<IProps> = (props) => {
return years;
}, new Set());
const newSet: string[] = Array.from(newAvailableYears);
const sorted = newSet.sort().reverse();
setAvailableYearOptions(sorted);
setAvailableYearOptions(newSet);

// if selected years includes years not in available options, remove them from selection
const selectionsNotAvailable = selectedOptions.years.filter(year => !newSet.includes(year));
Expand Down

0 comments on commit 58c13b4

Please sign in to comment.