Commit 3f926d1e authored by Sonja Happ's avatar Sonja Happ
Browse files

some fixes to make simulator add and edit work

parent 9dc65a64
......@@ -41,7 +41,7 @@ class EditSimulatorDialog extends React.Component {
onClose(canceled) {
if (canceled === false) {
if (this.valid) {
let data = {};
let data = this.props.simulator.properties;
if (this.state.name != null && this.state.name !== "" && this.state.name !== _.get(this.props.simulator, 'rawProperties.name')) {
data.name = this.state.name;
......@@ -85,7 +85,7 @@ class EditSimulatorDialog extends React.Component {
</FormGroup>
<FormGroup controlId='properties'>
<FormLabel column={false}>Properties</FormLabel>
<ParametersEditor content={_.merge({}, this.props.simulator.rawProperties, this.props.simulator.properties)} disabled={true} />
<ParametersEditor content={_.merge({}, _.get(this.props.simulator, 'rawProperties'), _.get(this.props.simulator, 'properties'))} disabled={true} />
</FormGroup>
</form>
</Dialog>
......
......@@ -96,7 +96,7 @@ class Simulators extends Component {
});
// Start timer for periodic refresh
this.timer = window.setInterval(() => this.refresh(), 5000);
this.timer = window.setInterval(() => this.refresh(), 10000);
}
componentWillUnmount() {
......
Supports Markdown
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