mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Fix multiple signal selection in widget edit dialog
This commit is contained in:
parent
f702c2062c
commit
cdafc62aa3
1 changed files with 4 additions and 5 deletions
|
@ -54,14 +54,13 @@ class EditWidgetSignalsControl extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const simulationModel = this.props.simulationModels.find(m => m._id === this.state.widget.simulationModel);
|
||||
|
||||
let signalsToRender = [];
|
||||
|
||||
if (this.props.simulation) {
|
||||
// get selected simulation model
|
||||
const simulationModel = this.props.simulation.models.find( model => model.simulator.node === this.state.widget.simulator.node && model.simulator.simulator === this.state.widget.simulator.simulator );
|
||||
|
||||
if (simulationModel != null) {
|
||||
// If simulation model update the signals to render
|
||||
signalsToRender = simulationModel? simulationModel.outputMapping : [];
|
||||
signalsToRender = simulationModel ? simulationModel.outputMapping : [];
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Reference in a new issue