diff options
Diffstat (limited to 'frontend/src/pages')
| -rw-r--r-- | frontend/src/pages/App.js | 4 | ||||
| -rw-r--r-- | frontend/src/pages/Experiments.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/frontend/src/pages/App.js b/frontend/src/pages/App.js index 3034f7ff..89d1fa32 100644 --- a/frontend/src/pages/App.js +++ b/frontend/src/pages/App.js @@ -92,12 +92,12 @@ class AppComponent extends React.Component { const mapStateToProps = (state) => { let simulationName = undefined - if (state.currentSimulationId !== -1 && state.objects.simulation[state.currentSimulationId]) { + if (state.currentSimulationId !== '-1' && state.objects.simulation[state.currentSimulationId]) { simulationName = state.objects.simulation[state.currentSimulationId].name } return { - topologyIsLoading: state.currentTopologyId === -1, + topologyIsLoading: state.currentTopologyId === '-1', simulationName, } } diff --git a/frontend/src/pages/Experiments.js b/frontend/src/pages/Experiments.js index 97e63f44..43bd15be 100644 --- a/frontend/src/pages/Experiments.js +++ b/frontend/src/pages/Experiments.js @@ -44,7 +44,7 @@ class ExperimentsComponent extends React.Component { const mapStateToProps = (state) => { let simulationName = undefined - if (state.currentSimulationId !== -1 && state.objects.simulation[state.currentSimulationId]) { + if (state.currentSimulationId !== '-1' && state.objects.simulation[state.currentSimulationId]) { simulationName = state.objects.simulation[state.currentSimulationId].name } |
