1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

do not clear simulator-data-data-store after opening ws connection

This commit is contained in:
Steffen Vogel 2018-06-04 17:47:38 +02:00
parent cd8f27575e
commit 41a6f5ee30

View file

@ -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':