Skip to content

Commit

Permalink
fix: always sort scopes client-side
Browse files Browse the repository at this point in the history
This is important when the ember store already contains data and we
can't rely on the sort in the API response.
  • Loading branch information
czosel committed Nov 18, 2022
1 parent c419181 commit dc02842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/templates/scopes/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<EditForm::Element @label={{t "emeis.scopes.headings.parent"}} @optional={{true}}>
<RelationshipSelect
@model={{this.allScopes}}
@model={{sort-by "fullName" this.allScopes}}
@selected={{@model.parent}}
@placeholder="{{t "emeis.scopes.headings.parent"}}..."
@onChange={{this.setParent}} as |scope|
Expand Down

0 comments on commit dc02842

Please sign in to comment.