Skip to content

Commit

Permalink
Merge pull request #139 from OpenWiseSolutions/fix/NO-JIRA/fix-errors…
Browse files Browse the repository at this point in the history
…-overview-action-handler

[NO-JIRA]: Fix errors overview actions naming
  • Loading branch information
hanusto authored May 28, 2021
2 parents 7ae527f + bf7f587 commit 4d469dd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { fetchErrorCatalog } from '../../../services/errors.service.js'
// ------------------------------------
// Constants
// ------------------------------------
const GET_ENVIRONMENT_SUCCESS = 'GET_ENVIRONMENT_SUCCESS'
const GET_ERRORS_OVERVIEW_SUCCESS = 'GET_ERRORS_OVERVIEW_SUCCESS'

// ------------------------------------
// Actions
// ------------------------------------

export const getErrorsOverviewSuccess = (payload) =>
({ type: GET_ENVIRONMENT_SUCCESS, payload })
({ type: GET_ERRORS_OVERVIEW_SUCCESS, payload })

export const getErrorsOverview = () => (dispatch) => {
return fetchErrorCatalog()
Expand All @@ -27,7 +27,7 @@ export const actions = {
// Action Handlers
// ------------------------------------
const ACTION_HANDLERS = {
[GET_ENVIRONMENT_SUCCESS]: (state, { payload }) => ({ ...state, errorsData: payload })
[GET_ERRORS_OVERVIEW_SUCCESS]: (state, { payload }) => ({ ...state, errorsData: payload })
}

// ------------------------------------
Expand Down

0 comments on commit 4d469dd

Please sign in to comment.