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/sagas/experiments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/sagas/experiments.js') diff --git a/frontend/src/sagas/experiments.js b/frontend/src/sagas/experiments.js index b9106fdc..e5aeeb46 100644 --- a/frontend/src/sagas/experiments.js +++ b/frontend/src/sagas/experiments.js @@ -32,7 +32,7 @@ export function* onOpenExperimentSucceeded(action) { function* startStateFetchLoop(experimentId) { try { - while ((yield select((state) => state.currentExperimentId)) !== -1) { + while ((yield select((state) => state.currentExperimentId)) !== '-1') { const lastSimulatedTick = (yield call(getExperiment, experimentId)).lastSimulatedTick if (lastSimulatedTick !== (yield select((state) => state.lastSimulatedTick))) { yield put(setLastSimulatedTick(lastSimulatedTick)) @@ -90,7 +90,7 @@ export function* onAddExperiment(action) { addExperiment, currentSimulationId, Object.assign({}, action.experiment, { - id: -1, + id: '-1', simulationId: currentSimulationId, }) ) -- cgit v1.2.3