Don't try to render fetched response

Because it's a turbo stream response, it will be rendered automatically.
This commit is contained in:
Kevin McConnell
2025-01-22 16:18:10 +00:00
parent b2f72ff668
commit 4807d3cf7d
@@ -19,10 +19,7 @@ export default class extends Controller {
observer.observe(this.element)
}
async #fetch() {
const resp = await get(this.urlValue, { responseKind: "turbo-stream" })
const html = await resp.html
Turbo.renderStreamMessage(html)
#fetch() {
get(this.urlValue, { responseKind: "turbo-stream" })
}
}