Skip to content

Commit afab142

Browse files
committed
#2401: supply_predictors.jsx, correctly define 'ajaxArguments'
1 parent afb5b90 commit afab142

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jsx/import/input-data/supply_predictors.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ var SupplyPredictors = React.createClass({
9090
var ajaxData = {'session_id': this.props.selectedModelId};
9191
var ajaxArguments = {
9292
'endpoint': ajaxEndpoint,
93-
'data': ajaxData
93+
'data': JSON.stringify(ajaxData),
94+
'contentType': 'application/json'
9495
};
9596

9697
// asynchronous callback: ajax 'done' promise

0 commit comments

Comments
 (0)