diff --git a/package.json b/package.json index c4b6a48..cca2cea 100644 --- a/package.json +++ b/package.json @@ -17,12 +17,12 @@ "lodash": "^4.0.0", "normalizr": "^1.0.0", "q": "^1.4.1", - "react": "^0.14.0", - "react-dom": "^0.14.0", + "react": "16.4.1", + "react-dom": "16.4.1", "react-redux": "^4.0.0", "react-router": "^1.0.3", "redux": "^3.0.0", - "redux-form": "^4.1.0", + "redux-form": "^8.0.0", "redux-logger": "^2.4.0", "redux-router": "^1.0.0-beta3", "redux-thunk": "^0.1.0" diff --git a/src/actions/steps.js b/src/actions/steps.js index d5ddc1b..6c210d3 100644 --- a/src/actions/steps.js +++ b/src/actions/steps.js @@ -75,7 +75,7 @@ export function createStep(projectId, values) { const failure = error => { return dispatch({ - type: STEP_FAILURE, + type: STEP_CREATE_FAILURE, error: error.message || 'Something bad happened' }) } @@ -109,9 +109,9 @@ export function updateStep(projectId, stepId, values) { } const failure = error => { - return dispatch({type: STEP_FAILURE, error: error.message || 'Something bad happened'}) + return dispatch({type: STEP_UPDATE_FAILURE, error: error.message || 'Something bad happened'}) } return callApi(config).then(success).catch(failure) } -} \ No newline at end of file +}