Don't update counter if value hasn't changed

This commit is contained in:
Andy Smith
2025-12-29 14:51:11 -06:00
parent 14464da29a
commit 67f39aad8a
@@ -13,7 +13,9 @@ export default class extends Controller {
}
connect() {
this.#updateCounter()
if (this.itemTargets.length > 0) {
this.#updateCounter()
}
}
itemTargetConnected() {