Skip to content

Commit

Permalink
fix: use translated names to sort type filter
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Feb 22, 2025
1 parent caaa420 commit 1cc5732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/selectors/lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1342,11 +1342,11 @@ export const selectTypeOptions = createSelector(
(state: StoreState) => state.metadata.types,
({ types }, typeTable) =>
Array.from(types)
.sort()
.map((code) => ({
...typeTable[code],
name: i18n.t(`common.type.${code}`),
})),
}))
.sort((a, b) => sortAlphabetical(a.name, b.name)),
);

/**
Expand Down

0 comments on commit 1cc5732

Please sign in to comment.