Don't summarize boosts if there are none
This commit is contained in:
@@ -8,10 +8,12 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
#summarizeBoosts() {
|
||||
const el = document.createElement("span")
|
||||
el.dataset.turboTemporary = ""
|
||||
el.textContent = this.#boostSumaries.toSentence()
|
||||
this.element.appendChild(el)
|
||||
if (this.hasBoostEventTargets) {
|
||||
const el = document.createElement("span")
|
||||
el.dataset.turboTemporary = ""
|
||||
el.textContent = this.#boostSumaries.toSentence()
|
||||
this.element.appendChild(el)
|
||||
}
|
||||
}
|
||||
|
||||
get #boostSumaries() {
|
||||
|
||||
Reference in New Issue
Block a user