summaryrefslogtreecommitdiff
path: root/frontend/src/containers/app/timeline/TimelineContainer.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/containers/app/timeline/TimelineContainer.js')
-rw-r--r--frontend/src/containers/app/timeline/TimelineContainer.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/frontend/src/containers/app/timeline/TimelineContainer.js b/frontend/src/containers/app/timeline/TimelineContainer.js
index 4fcaaaaf..9b196a1b 100644
--- a/frontend/src/containers/app/timeline/TimelineContainer.js
+++ b/frontend/src/containers/app/timeline/TimelineContainer.js
@@ -1,28 +1,14 @@
import { connect } from 'react-redux'
import { pauseSimulation } from '../../../actions/simulation/playback'
import { incrementTick } from '../../../actions/simulation/tick'
-import { setCurrentDatacenter } from '../../../actions/topology/building'
import TimelineComponent from '../../../components/app/timeline/TimelineComponent'
const mapStateToProps = state => {
- let sections = []
- if (state.currentExperimentId !== -1) {
- const sectionIds =
- state.objects.path[
- state.objects.experiment[state.currentExperimentId].pathId
- ].sectionIds
-
- if (sectionIds) {
- sections = sectionIds.map(sectionId => state.objects.section[sectionId])
- }
- }
-
return {
isPlaying: state.isPlaying,
currentTick: state.currentTick,
lastSimulatedTick: state.lastSimulatedTick,
- currentDatacenterId: state.currentDatacenterId,
- sections,
+ currentTopologyId: state.currentTopologyId,
}
}
@@ -30,7 +16,6 @@ const mapDispatchToProps = dispatch => {
return {
incrementTick: () => dispatch(incrementTick()),
pauseSimulation: () => dispatch(pauseSimulation()),
- setCurrentDatacenter: id => dispatch(setCurrentDatacenter(id)),
}
}