diff --git a/js/src/rive.ts b/js/src/rive.ts index e88d3954..ae35e8b2 100644 --- a/js/src/rive.ts +++ b/js/src/rive.ts @@ -496,7 +496,7 @@ class Animator { // Play/pause already instanced items, or create new instances const instancedAnimationNames = this.animations.map((a) => a.name); const instancedMachineNames = this.stateMachines.map((m) => m.name); - for (const [i] of animatables.entries()) { + for (let i = 0; i < animatables.length; i++) { const aIndex = instancedAnimationNames.indexOf(animatables[i]); const mIndex = instancedMachineNames.indexOf(animatables[i]); if (aIndex >= 0 || mIndex >= 0) {