summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/sidebars/topology/rack
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/sidebars/topology/rack')
-rw-r--r--frontend/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js2
-rw-r--r--frontend/src/containers/app/sidebars/topology/rack/MachineContainer.js2
-rw-r--r--frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js2
3 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js b/frontend/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
index 07439dc9..d580a3e0 100644
--- a/frontend/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
+++ b/frontend/src/containers/app/sidebars/topology/rack/EmptySlotContainer.js
@@ -4,7 +4,7 @@ import EmptySlotComponent from '../../../../../components/app/sidebars/topology/
const mapStateToProps = state => {
return {
- inSimulation: state.currentExperimentId !== -1,
+ inSimulation: state.currentExperimentId !== '-1',
}
}
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) {
diff --git a/frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js b/frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
index 21745b1d..7f931979 100644
--- a/frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
+++ b/frontend/src/containers/app/sidebars/topology/rack/RackSidebarContainer.js
@@ -4,7 +4,7 @@ import RackSidebarComponent from '../../../../../components/app/sidebars/topolog
const mapStateToProps = state => {
return {
rackId: state.objects.tile[state.interactionLevel.tileId].rackId,
- inSimulation: state.currentExperimentId !== -1,
+ inSimulation: state.currentExperimentId !== '-1',
}
}