summaryrefslogtreecommitdiff
path: root/src/containers/sidebars
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-21 15:10:15 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:04 +0200
commit0439ccf76f9ccf68c7572deadf38d6a157c439e7 (patch)
treee71d3ac9b2ab443d8c49342cc6c7708ba2a00788 /src/containers/sidebars
parentda861719c6433a1fc9346da958f0907e52d578ce (diff)
Implement last-simulated-tick and states fetching
Diffstat (limited to 'src/containers/sidebars')
-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],
};
};