diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-02 18:39:28 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:47:21 +0200 |
| commit | f119fc78dda4d1e828dde04f378a63a93e3a0a7e (patch) | |
| tree | bea1eace5d47f21a7ccb835c6a6079bc92e48710 /frontend/src/containers/modals/NewExperimentModal.js | |
| parent | 7f27a6370a0af25e1bf6ff8f46360c6c26c21e0b (diff) | |
Add current progress on frontend port
Diffstat (limited to 'frontend/src/containers/modals/NewExperimentModal.js')
| -rw-r--r-- | frontend/src/containers/modals/NewExperimentModal.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/frontend/src/containers/modals/NewExperimentModal.js b/frontend/src/containers/modals/NewExperimentModal.js index db60f088..2ac5a4b8 100644 --- a/frontend/src/containers/modals/NewExperimentModal.js +++ b/frontend/src/containers/modals/NewExperimentModal.js @@ -6,9 +6,9 @@ import NewExperimentModalComponent from '../../components/modals/custom-componen const mapStateToProps = state => { return { show: state.modals.newExperimentModalVisible, - paths: Object.values(state.objects.path).filter( - path => path.simulationId === state.currentSimulationId, - ), + topologies: state.objects.simulation[state.currentSimulationId].topologyIds.map(t => ( + state.objects.topology[t] + )), traces: Object.values(state.objects.trace), schedulers: Object.values(state.objects.scheduler), } @@ -16,12 +16,12 @@ const mapStateToProps = state => { const mapDispatchToProps = dispatch => { return { - callback: (name, pathId, traceId, schedulerName) => { + callback: (name, topologyId, traceId, schedulerName) => { if (name) { dispatch( addExperiment({ name, - pathId, + topologyId, traceId, schedulerName, }), |
