From 3f926d1e9449dfa20b327be62006dd6c0aa5e0c1 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Wed, 24 Jul 2019 16:42:04 +0200 Subject: [PATCH] some fixes to make simulator add and edit work --- src/components/dialogs/edit-simulator.js | 4 ++-- src/containers/simulators.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/dialogs/edit-simulator.js b/src/components/dialogs/edit-simulator.js index 74edcd2..89ff7e7 100644 --- a/src/components/dialogs/edit-simulator.js +++ b/src/components/dialogs/edit-simulator.js @@ -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 { Properties - + diff --git a/src/containers/simulators.js b/src/containers/simulators.js index f73e7d3..aae637f 100644 --- a/src/containers/simulators.js +++ b/src/containers/simulators.js @@ -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() {