mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
proper init of startParameters for new simulationModel
This commit is contained in:
parent
7c0615862c
commit
bd11dc79bb
1 changed files with 1 additions and 2 deletions
|
@ -143,6 +143,7 @@ class Scenario extends React.Component {
|
|||
scenarioID: this.state.scenario.id,
|
||||
name: 'New Simulation Model',
|
||||
simulatorID: this.state.simulators.length > 0 ? this.state.simulators[0].id : null,
|
||||
startParameters: {},
|
||||
};
|
||||
|
||||
AppDispatcher.dispatch({
|
||||
|
@ -209,8 +210,6 @@ class Scenario extends React.Component {
|
|||
if (data){
|
||||
//data is an array of signals
|
||||
for (let sig of data) {
|
||||
//TODO: Check if new signal is added by checking id set to -1?
|
||||
|
||||
//dispatch changes to signals
|
||||
AppDispatcher.dispatch({
|
||||
type: 'signals/start-edit',
|
||||
|
|
Loading…
Add table
Reference in a new issue