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

fixed simulator property

This commit is contained in:
Ricardo Hernandez-Montoya 2017-05-23 10:50:03 +02:00
parent d2f714f084
commit b076db8b7b
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class EditWidgetSignalControl extends Component {
if (this.props.simulation) {
// get selected simulation model
const simulationModel = this.props.simulation.models.find( model => model.simulation === this.state.widget.simulation );
const simulationModel = this.props.simulation.models.find( model => model.simulator === this.state.widget.simulator );
// If simulation model update the signals to render
signalsToRender = simulationModel? simulationModel.mapping : [];

View file

@ -46,7 +46,7 @@ class EditWidgetSignalsControl extends Component {
if (this.props.simulation) {
// get selected simulation model
const simulationModel = this.props.simulation.models.find( model => model.simulation === this.state.widget.simulation );
const simulationModel = this.props.simulation.models.find( model => model.simulator === this.state.widget.simulator );
// If simulation model update the signals to render
signalsToRender = simulationModel? simulationModel.mapping : [];