Skip to content

Commit

Permalink
fix(relationship-select): use let instead of with
Browse files Browse the repository at this point in the history
  • Loading branch information
velrest committed Oct 14, 2020
1 parent e770214 commit 690c0ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon/components/relationship-select.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
...attributes
{{did-insert (perform this.fetchModels)}}
/>
{{#with
{{#let
(component
(if @multiple "power-select-multiple" "power-select")
) as |RelationPowerSelect|
}}
<RelationPowerSelect
@searchEnabled={{true}}
@searchEnabled={{this.searchEnabled}}
@search={{perform this.fetchModels}}
@options={{this.models}}
@selected={{@selected}}
Expand All @@ -22,4 +22,4 @@
>
{{yield model}}
</RelationPowerSelect>
{{/with}}
{{/let}}

0 comments on commit 690c0ba

Please sign in to comment.