Skip to content

Commit 7a85f7f

Browse files
authored
Merge pull request #206 from ember-learn/fix-local-variable-clobbering
[bugfix] Fixes local variable section clobbering the actual element
2 parents 731830a + 108e17c commit 7a85f7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

addon/components/api/x-sections/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import hbs from 'htmlbars-inline-precompile';
44
export default Component.extend({
55
tagName: '',
66
layout: hbs`
7-
{{#each-in sections as |section items|}}
7+
{{#each-in sections as |sectionName items|}}
88
{{#if items}}
99
<section data-test-api-section class="item-section">
10-
<h2 data-test-section-header={{section}} class="docs-h2">
11-
{{capitalize section}}
10+
<h2 data-test-section-header={{sectionName}} class="docs-h2">
11+
{{capitalize sectionName}}
1212
</h2>
1313
1414
{{#each items as |item|}}

0 commit comments

Comments
 (0)