Skip to content

Commit

Permalink
fix(webapp): sort appNames alphabetically (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
eh-am authored Nov 1, 2022
1 parent 1070732 commit e29d2e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/javascript/redux/reducers/continuous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,10 @@ export const selectApplicationName = (state: RootState) => {

export const selectAppNamesState = (state: RootState) =>
state.continuous.appNames;
export const selectAppNames = (state: RootState) =>
state.continuous.appNames.data;
export const selectAppNames = (state: RootState) => {
const sorted = [...state.continuous.appNames.data].sort();
return sorted;
};

export const selectComparisonState = (state: RootState) =>
state.continuous.comparisonView;
Expand Down

0 comments on commit e29d2e2

Please sign in to comment.