From 235f3e249d9320b935b0b3d14e67be9d03a4a3f5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 4 Jun 2018 17:49:10 +0200 Subject: [PATCH] be more robust when handling simulato-data-data-store --- src/stores/simulator-data-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/simulator-data-store.js b/src/stores/simulator-data-store.js index 15ac857..1486558 100644 --- a/src/stores/simulator-data-store.js +++ b/src/stores/simulator-data-store.js @@ -107,7 +107,7 @@ class SimulationDataStore extends ReduceStore { case 'simulatorData/inputChanged': // find simulator in node array - if (state[action.simulator] == null) { + if (state[action.simulator] == null || state[action.simulator].input == null) { return state; }