Skip to content

Commit

Permalink
🚧 Fix action type
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival committed Oct 29, 2017
1 parent 2eb1493 commit b07b27f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/redux/modules/sisSupervisedCourses.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const actionTypes = {
FETCH_REJECTED: 'recodex/sisSupervisedCourses/FETCH_REJECTED',
FETCH_FULFILLED: 'recodex/sisSupervisedCourses/FETCH_FULFILLED',
CREATE: 'recodex/sisSupervisedCourses/CREATE',
CREATE_FULFILLED: 'recodex/sisSupervisedCourses/CREATE_FULFILLED',
BIND: 'recodex/sisSupervisedCourses/BIND',
BIND_FULFILLED: 'recodex/sisSupervisedCourses/BIND_FULFILLED'
};
Expand Down Expand Up @@ -54,7 +55,7 @@ export const sisBindGroup = (courseId, data, userId, year, term) =>

const reducer = handleActions(
Object.assign({}, reduceActions, {
[actionTypes.CREATE]: (state, { meta: { userId, year, term }, payload }) =>
[actionTypes.CREATE_FULFILLED]: (
state.setIn(
['resources', userId, `${year}-${term}`],
createRecord({ state: resourceStatus.FULFILLED, data: fromJS(payload) })
Expand Down

0 comments on commit b07b27f

Please sign in to comment.