summaryrefslogtreecommitdiff
path: root/frontend/src/sagas/experiments.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-03 11:46:29 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:47:22 +0200
commit52865c97f820b883977179930ce4961abdb39c12 (patch)
tree6b429d80694d7e5729fb1f41ff8f9ba4b2d07d4b /frontend/src/sagas/experiments.js
parent39277c91281dbc7bd40bdffabc5b5675e9ede483 (diff)
Fix integer IDs and topology deletion
Diffstat (limited to 'frontend/src/sagas/experiments.js')
-rw-r--r--frontend/src/sagas/experiments.js4
1 files changed, 2 insertions, 2 deletions
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,
})
)