summaryrefslogtreecommitdiff
path: root/src/containers/sidebars/topology/machine/MachineSidebarContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/sidebars/topology/machine/MachineSidebarContainer.js')
-rw-r--r--src/containers/sidebars/topology/machine/MachineSidebarContainer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/containers/sidebars/topology/machine/MachineSidebarContainer.js b/src/containers/sidebars/topology/machine/MachineSidebarContainer.js
index b0d5eed9..f99fc05e 100644
--- a/src/containers/sidebars/topology/machine/MachineSidebarContainer.js
+++ b/src/containers/sidebars/topology/machine/MachineSidebarContainer.js
@@ -3,8 +3,9 @@ import MachineSidebarComponent from "../../../../components/sidebars/topology/ma
const mapStateToProps = state => {
return {
- machineId: state.interactionLevel.machineId,
inSimulation: state.currentExperimentId !== -1,
+ machineId: state.objects.rack[state.objects.tile[state.interactionLevel.tileId].objectId]
+ .machineIds[state.interactionLevel.position - 1],
};
};