Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update dynamic component hbs syntax (#29445)

David Taylorb364a13ad314
diff --git a/app/assets/javascripts/discourse/app/components/reviewable-item.hbs b/app/assets/javascripts/discourse/app/components/reviewable-item.hbs
index f8587d6e2ab..09b8d4c3ae5 100644
--- a/app/assets/javascripts/discourse/app/components/reviewable-item.hbs
+++ b/app/assets/javascripts/discourse/app/components/reviewable-item.hbs
@@ -55,11 +55,17 @@
{{/each}}
</div>
{{else}}
- {{#component
- this.reviewableComponent reviewable=this.reviewable tagName=""
+ {{#let
+ (component
+ this.reviewableComponent reviewable=this.reviewable tagName=""
+ )
+ as |ReviewableComponent|
}}
- <ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
- {{/component}}
+ {{! template-lint-disable no-shadowed-elements }}{{! (seems to be a false positive) }}
+ <ReviewableComponent>
+ <ReviewableScores @reviewable={{this.reviewable}} @tagName="" />
+ </ReviewableComponent>
+ {{/let}}
{{/if}}
</div>