Skip to content

Commit a392923

Browse files
committed
crate-row: Use let helper to assign data-test-badge directly as an attribute
1 parent 7fbec76 commit a392923

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/templates/components/crate-row.hbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
<CrateTomlCopy @copyText={{this.crateTomlText}} />
66
<CrateBadge @crate={{this.crate}} />
77
{{#each this.crate.annotated_badges as |badge|}}
8-
{{component badge.component_name badge=badge data-test-badge=badge.badge_type}}
8+
{{#let (component badge.component_name) as |Badge|}}
9+
<Badge @badge={{badge}} data-test-badge={{badge.badge_type}} />
10+
{{/let}}
911
{{/each}}
1012
</div>
1113
<div class='summary' data-test-description>
@@ -43,5 +45,5 @@
4345
{{/if}}
4446
</ul>
4547
</div>
46-
48+
4749
</div>

0 commit comments

Comments
 (0)