Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
chore: sort alphabetically events list for select
Browse files Browse the repository at this point in the history
  • Loading branch information
pfferrari committed May 24, 2024
1 parent 61f07df commit 341a6fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app/src/data/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ export type ResourceEventKey = (typeof allFlatEvents)[number]

export function getAllEventsForSelect(): InputSelectValue[] {
const allEventsForSelect: InputSelectValue[] = []
allFlatEvents.sort()
allFlatEvents.forEach((event) => {
allEventsForSelect.push({
label: event,
value: event
})
})

return allEventsForSelect
}

Expand Down

0 comments on commit 341a6fd

Please sign in to comment.