Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[NO-JIRA]: Fix errors overview actions naming
  • Loading branch information
v8icka committed May 28, 2021
1 parent 7ae527f commit bf7f587
Showing 1 changed file with 3 additions and 3 deletions.
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 bf7f587

Please sign in to comment.