diff --git a/opentech/static_src/src/app/src/redux/actions/submissions.js b/opentech/static_src/src/app/src/redux/actions/submissions.js index 96014f0c50bfe0f40ffa2b2a7ccd15d037945393..0070c2d50c0351217172f982064310e893cd4dd8 100644 --- a/opentech/static_src/src/app/src/redux/actions/submissions.js +++ b/opentech/static_src/src/app/src/redux/actions/submissions.js @@ -21,7 +21,7 @@ export const UPDATE_SUBMISSION = 'UPDATE_SUBMISSION'; export const CLEAR_CURRENT_SUBMISSION = 'CLEAR_CURRENT_SUBMISSION'; // Notes -export const APPEND_NOTE_ID_FOR_SUBMISSION = 'APPEND_NOTE_ID_FOR_SUBMISSION'; +export const ADD_NOTE_FOR_SUBMISSION = 'ADD_NOTE_FOR_SUBMISSION'; export const setCurrentSubmissionRound = id => ({ type: SET_CURRENT_SUBMISSION_ROUND, @@ -137,7 +137,7 @@ export const clearCurrentSubmission = () => ({ }); export const appendNoteIDForSubmission = (submissionID, noteID) => ({ - type: APPEND_NOTE_ID_FOR_SUBMISSION, + type: ADD_NOTE_FOR_SUBMISSION, submissionID, noteID, }); diff --git a/opentech/static_src/src/app/src/redux/reducers/submissions.js b/opentech/static_src/src/app/src/redux/reducers/submissions.js index d77288614357140ace384fad7de9cb3aa03b8240..03abc4b6b895b654c6607870f3ef4a675a1de21c 100644 --- a/opentech/static_src/src/app/src/redux/reducers/submissions.js +++ b/opentech/static_src/src/app/src/redux/reducers/submissions.js @@ -7,7 +7,7 @@ import { UPDATE_SUBMISSIONS_BY_ROUND, UPDATE_SUBMISSION, SET_CURRENT_SUBMISSION, - APPEND_NOTE_ID_FOR_SUBMISSION, + ADD_NOTE_FOR_SUBMISSION, } from '@actions/submissions'; @@ -32,7 +32,7 @@ function submission(state, action) { isFetching: false, isErrored: false, }; - case APPEND_NOTE_ID_FOR_SUBMISSION: + case ADD_NOTE_FOR_SUBMISSION: return { ...state, comments: [ @@ -50,7 +50,7 @@ function submissionsByID(state = {}, action) { switch(action.type) { case START_LOADING_SUBMISSION: case FAIL_LOADING_SUBMISSION: - case APPEND_NOTE_ID_FOR_SUBMISSION: + case ADD_NOTE_FOR_SUBMISSION: case UPDATE_SUBMISSION: return { ...state,