From bcf119f2c4ac587cc8263db8a9fc0581521fdec7 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 28 Sep 2017 22:48:38 +0200 Subject: Implement batch state adding Also fixes the 'hidden states' bug. --- src/components/app/sidebars/topology/rack/MachineComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/app/sidebars/topology/rack/MachineComponent.js') diff --git a/src/components/app/sidebars/topology/rack/MachineComponent.js b/src/components/app/sidebars/topology/rack/MachineComponent.js index 545bb916..0ba4503d 100644 --- a/src/components/app/sidebars/topology/rack/MachineComponent.js +++ b/src/components/app/sidebars/topology/rack/MachineComponent.js @@ -15,7 +15,7 @@ const UnitIcon = ({id, type}) => ( const MachineComponent = ({position, machine, inSimulation, machineLoad, onClick}) => { let color = "white"; - if (inSimulation && machineLoad) { + if (inSimulation && machineLoad >= 0) { color = convertLoadToSimulationColor(machineLoad); } const hasNoUnits = machine.cpuIds.length + machine.gpuIds.length + machine.memoryIds.length -- cgit v1.2.3