mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
use simulation model in inputDataChanged()
This commit is contained in:
parent
d56fc4c5d5
commit
0b1420bce0
1 changed files with 11 additions and 1 deletions
|
@ -164,9 +164,19 @@ class Widget extends React.Component {
|
|||
}
|
||||
|
||||
inputDataChanged(widget, data) {
|
||||
let simulationModel = null;
|
||||
|
||||
for (let model of this.state.simulationModels) {
|
||||
if (model._id !== widget.simulationModel) {
|
||||
continue;
|
||||
}
|
||||
|
||||
simulationModel = model;
|
||||
}
|
||||
|
||||
AppDispatcher.dispatch({
|
||||
type: 'simulatorData/inputChanged',
|
||||
simulator: widget.simulator,
|
||||
simulator: simulationModel.simulator,
|
||||
signal: widget.signal,
|
||||
data
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue