Parcourir la source

Re-added graph disappearing if unselected sensors

A-Konig il y a 1 mois
Parent
commit
dad1059816
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/app/unit/components/unit.component.ts

+ 2 - 2
src/app/unit/components/unit.component.ts

@@ -136,8 +136,8 @@ export class UnitComponent implements OnInit, OnDestroy {
     const sensorGroupElement = '#vega_container_' + groupId;
 
     // if the checkmark is checked then the graph will be displayed
-    // this.showVega[groupId] = false;
-    // if (event.checked.includes(sensorId.toString()))
+    this.showVega[groupId] = false;
+    if (event.checked.includes(sensorId.toString()))
       this.showVega[groupId] = true;
 
     const box = document.getElementById('vega_container_' + groupId);