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

Fix plot table widget data checks

This commit is contained in:
Markus Grigull 2018-05-04 12:45:14 +02:00
parent 9d869daa0f
commit 14309aba06

View file

@ -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
));