Don't update counter if value hasn't changed
This commit is contained in:
@@ -13,7 +13,9 @@ export default class extends Controller {
|
||||
}
|
||||
|
||||
connect() {
|
||||
this.#updateCounter()
|
||||
if (this.itemTargets.length > 0) {
|
||||
this.#updateCounter()
|
||||
}
|
||||
}
|
||||
|
||||
itemTargetConnected() {
|
||||
|
||||
Reference in New Issue
Block a user