From 41a6f5ee30d557c4117cb5b8f44839d2b259615e Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 4 Jun 2018 17:47:38 +0200 Subject: [PATCH] do not clear simulator-data-data-store after opening ws connection --- src/stores/simulator-data-store.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/simulator-data-store.js b/src/stores/simulator-data-store.js index d5cdd8c..15ac857 100644 --- a/src/stores/simulator-data-store.js +++ b/src/stores/simulator-data-store.js @@ -39,7 +39,9 @@ class SimulationDataStore extends ReduceStore { switch (action.type) { case 'simulatorData/opened': // create entry for simulator - state[action.id] = {}; + if (state[action.id] === undefined) + state[action.id] = {}; + return state; case 'simulatorData/prepare':