diff --git a/app/assets/javascripts/discourse/app/widgets/render-glimmer.js b/app/assets/javascripts/discourse/app/widgets/render-glimmer.js index e4db7d87ca2..d5b23c0f554 100644 --- a/app/assets/javascripts/discourse/app/widgets/render-glimmer.js +++ b/app/assets/javascripts/discourse/app/widgets/render-glimmer.js @@ -1,4 +1,4 @@ -import Component from "@glimmer/component"; +import templateOnly from "@ember/component/template-only"; import { setComponentTemplate } from "@ember/component"; import { tracked } from "@glimmer/tracking"; import { assert } from "@ember/debug"; @@ -129,7 +129,8 @@ export default class RenderGlimmer { connectComponent() { const { element, template, widget } = this; - const component = class extends Component {}; + const component = templateOnly(); + component.name = "Widgets/RenderGlimmer"; setComponentTemplate(template, component); this._componentInfo = {