Skip to content

Commit

Permalink
separate options
Browse files Browse the repository at this point in the history
  • Loading branch information
priscilawebdev committed Jan 3, 2025
1 parent 795676d commit 4f1c30c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,19 @@ export function ReleaseSelector({
searchable
value={selectorValue}
options={[
{
value: '_selected_release',
// We do this because the selected/default release might not be sorted,
// but instead could have been added to the top of options list.
options: options.slice(0, 1),
},
{
value: '_releases',
label: tct('Sorted by [sortBy]', {
sortBy: SORT_BY_OPTIONS[sortBy].label,
}),
options,
// Display other releases sorted by the selected option
options: options.slice(1),
},
]}
onSearch={debounce(val => {
Expand Down

0 comments on commit 4f1c30c

Please sign in to comment.