Commit bd11dc79 authored by Sonja Happ's avatar Sonja Happ

proper init of startParameters for new simulationModel

parent 7c061586
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment