diff --git a/ts/Engine.ts b/ts/Engine.ts index 7bd4716..b9d6d7c 100644 --- a/ts/Engine.ts +++ b/ts/Engine.ts @@ -295,7 +295,7 @@ export class Engine { */ showImage(led: Led): void { if (led.on) { - this.selectedObject.innerText = led.name.split('.')[0] + ' (' + ( this.leds.currentLedIndex + 1) + '/' + this.leds.children.length + ')'; + this.selectedObject.innerText = led.name.split('.')[0] + ' (' + ( this.leds.currentLedIndex + 1) + '/' + this.leds.leds.length + ')'; this.ledView.src = '/data/calibration/' + this.objectId + '/' + led.name; this.ledView.style.display = 'block'; } else {