diff --git a/sim/visuals/nodes/largeMotorView.ts b/sim/visuals/nodes/largeMotorView.ts index 3f18241a..292b28ff 100644 --- a/sim/visuals/nodes/largeMotorView.ts +++ b/sim/visuals/nodes/largeMotorView.ts @@ -19,7 +19,11 @@ namespace pxsim.visuals { const syncedMotor = motorState.getSynchedMotor(); if ((syncedMotor || this.syncedMotor) && syncedMotor != this.syncedMotor) { this.syncedMotor = syncedMotor; - this.showSyncedLabel(motorState, syncedMotor); + if (this.syncedMotor) { + this.showSyncedLabel(motorState, syncedMotor); + } else if (this.syncedLabelG) { + this.syncedLabelG.parentNode.removeChild(this.syncedLabelG); + } } }