move to use let, missed a spot
This commit is contained in:
parent
51d7dc4355
commit
7895b71817
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue