move to use let, missed a spot

This commit is contained in:
Sam 2017-03-01 15:15:26 -05:00
parent 51d7dc4355
commit 7895b71817
2 changed files with 2 additions and 8 deletions

View File

@ -42,7 +42,7 @@ export default function(topic, params){
if (customHtml || (tags && tags.length > 0)) {
buffer = "<div class='discourse-tags'>";
if (tags) {
for(var i=0; i<tags.length; i++){
for(let i=0; i<tags.length; i++){
buffer += renderTag(tags[i]);
}
}

View File

@ -32,13 +32,7 @@
</div>
{{/unless}}
{{#if topic.tags}}
<div class='discourse-tags'>
{{#each topic.visibleListTags as |tag|}}
{{discourse-tag tag}}
{{/each}}
</div>
{{/if}}
{{discourse-tags topic mode="list"}}
{{raw-plugin-outlet name="topic-list-tags"}}