From 4c73eb44f99937e477aed6738729c76a379e3ec0 Mon Sep 17 00:00:00 2001 From: Markus Grigull Date: Thu, 27 Jul 2017 02:00:50 +0200 Subject: [PATCH] Update plot-table with new plot --- src/components/widget-plot-table.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/components/widget-plot-table.js b/src/components/widget-plot-table.js index 7862a05..c674773 100644 --- a/src/components/widget-plot-table.js +++ b/src/components/widget-plot-table.js @@ -108,7 +108,9 @@ class WidgetPlotTable extends Component { let simulatorData = []; if (this.props.data[simulator.node] != null && this.props.data[simulator.node][simulator.simulator] != null) { - simulatorData = this.props.data[simulator.node][simulator.simulator]; + simulatorData = this.props.data[simulator.node][simulator.simulator].values.filter((values, index) => ( + this.props.widget.signals.findIndex(value => value === index) !== -1 + )); } if (this.state.preselectedSignals && this.state.preselectedSignals.length > 0) { @@ -153,7 +155,12 @@ class WidgetPlotTable extends Component {
- +