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 17, 2022
1 parent c8832bd commit e363e42
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 "full-name" this.allScopes}}
@selected={{@model.parent}}
@placeholder="{{t "emeis.scopes.headings.parent"}}..."
@onChange={{this.setParent}} as |scope|
Expand Down

0 comments on commit e363e42

Please sign in to comment.