From 14309aba065cc0e02f8a2c0efaf2cec5136fbbf6 Mon Sep 17 00:00:00 2001 From: Markus Grigull Date: Fri, 4 May 2018 12:45:14 +0200 Subject: [PATCH] Fix plot table widget data checks --- src/components/widget-plot-table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widget-plot-table.js b/src/components/widget-plot-table.js index 02d11be..9e9f353 100644 --- a/src/components/widget-plot-table.js +++ b/src/components/widget-plot-table.js @@ -103,7 +103,7 @@ class WidgetPlotTable extends Component { const simulator = this.props.simulationModel.simulator; let simulatorData = []; - if (this.props.data[simulator] != null) { + if (this.props.data[simulator] != null && this.props.data[simulator].output != null && this.props.data[simulator].output.values != null) { simulatorData = this.props.data[simulator].output.values.filter((values, index) => ( this.props.widget.signals.findIndex(value => value === index) !== -1 ));