From a1d95b3685cffb6a9344d0d1e5505dd391193f16 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 15 Sep 2017 12:53:26 +0200 Subject: Implement experiment list and add --- .../custom-components/NewExperimentModalComponent.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/components/modals/custom-components/NewExperimentModalComponent.js') diff --git a/src/components/modals/custom-components/NewExperimentModalComponent.js b/src/components/modals/custom-components/NewExperimentModalComponent.js index 9efccc8a..d56d2316 100644 --- a/src/components/modals/custom-components/NewExperimentModalComponent.js +++ b/src/components/modals/custom-components/NewExperimentModalComponent.js @@ -20,8 +20,12 @@ class NewExperimentModalComponent extends React.Component { } onSubmit() { - this.props.callback(this.textInput.value, this.pathSelect.value, this.traceSelect.value, - this.schedulerSelect.value); + this.props.callback( + this.textInput.value, + parseInt(this.pathSelect.value, 10), + parseInt(this.traceSelect.value, 10), + this.schedulerSelect.value + ); this.reset(); } @@ -41,23 +45,23 @@ class NewExperimentModalComponent extends React.Component { this.onSubmit(); }}>
- + this.textInput = textInput}/>
- +
- +
- +