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:
parent
d2f714f084
commit
b076db8b7b
2 changed files with 2 additions and 2 deletions
|
@ -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 : [];
|
||||
|
|
|
@ -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 : [];
|
||||
|
|
Loading…
Add table
Reference in a new issue