Skip to content

Commit

Permalink
#3132: analysis.jsx, append 'penalty' to 'formData'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Dec 10, 2017
1 parent 476f038 commit f45817f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/jsx/import/layout/analysis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ class AnalysisLayout extends Component {
const formData = new FormData(this.refs.analysisForm);
formData.append('session_type', sessionType);

// model_generate: append penalty
if (
this.props &&
this.props.page &&
this.props.page.slider &&
!!this.props.page.slider.penalty
) {
formData.append('penalty', this.props.page.slider.penalty);
}

const ajaxArguments = {
endpoint: ajaxEndpoint,
data: formData,
Expand Down

0 comments on commit f45817f

Please sign in to comment.