diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-21 10:20:50 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:06:04 +0200 |
| commit | da861719c6433a1fc9346da958f0907e52d578ce (patch) | |
| tree | b171796fbfe17f0356bf6e32430223c67812a760 /src/containers/timeline/TimelineControlsContainer.js | |
| parent | f8f617c97fcb2df3dbefc9527d974151e367cb60 (diff) | |
Show experiment and trace data on left-hand sidebar
Diffstat (limited to 'src/containers/timeline/TimelineControlsContainer.js')
| -rw-r--r-- | src/containers/timeline/TimelineControlsContainer.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/containers/timeline/TimelineControlsContainer.js b/src/containers/timeline/TimelineControlsContainer.js index e5c89060..1afd336a 100644 --- a/src/containers/timeline/TimelineControlsContainer.js +++ b/src/containers/timeline/TimelineControlsContainer.js @@ -5,7 +5,9 @@ const mapStateToProps = state => { let sectionTicks = []; if (state.currentExperimentId !== -1) { const sectionIds = state.objects.path[state.objects.experiment[state.currentExperimentId].pathId].sectionIds; - sectionTicks = sectionIds.map(sectionId => state.objects.section[sectionId].startTick); + if (sectionIds) { + sectionTicks = sectionIds.map(sectionId => state.objects.section[sectionId].startTick); + } } return { |
