From 52865c97f820b883977179930ce4961abdb39c12 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 3 Jul 2020 11:46:29 +0200 Subject: Fix integer IDs and topology deletion --- frontend/src/reducers/simulation-mode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/reducers/simulation-mode.js') diff --git a/frontend/src/reducers/simulation-mode.js b/frontend/src/reducers/simulation-mode.js index ea15ffa9..5f938ec8 100644 --- a/frontend/src/reducers/simulation-mode.js +++ b/frontend/src/reducers/simulation-mode.js @@ -4,12 +4,12 @@ import { SET_PLAYING } from '../actions/simulation/playback' import { GO_TO_TICK, SET_LAST_SIMULATED_TICK } from '../actions/simulation/tick' import { OPEN_SIMULATION_SUCCEEDED } from '../actions/simulations' -export function currentExperimentId(state = -1, action) { +export function currentExperimentId(state = '-1', action) { switch (action.type) { case OPEN_EXPERIMENT_SUCCEEDED: return action.experimentId case OPEN_SIMULATION_SUCCEEDED: - return -1 + return '-1' default: return state } -- cgit v1.2.3