From 52865c97f820b883977179930ce4961abdb39c12 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 3 Jul 2020 11:46:29 +0200 Subject: Fix integer IDs and topology deletion --- frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js') diff --git a/frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js b/frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js index 89818f1d..43558329 100644 --- a/frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js +++ b/frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js @@ -5,7 +5,7 @@ import { getStateLoad } from '../../../../../util/simulation-load' const mapStateToProps = (state, ownProps) => { const machine = state.objects.machine[ownProps.machineId] - const inSimulation = state.currentExperimentId !== -1 + const inSimulation = state.currentExperimentId !== '-1' let machineLoad = undefined if (inSimulation) { -- cgit v1.2.3