1
0
Fork 0
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:
Steffen Vogel 2018-05-31 22:21:53 +02:00
parent d56fc4c5d5
commit 0b1420bce0

View file

@ -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
});