Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(reducers): in links fix GET_LINKS_FAIL
Browse files Browse the repository at this point in the history
fix(reducers): in links fix GET_LINKS_FAIL
  • Loading branch information
Metnew committed Dec 5, 2017
1 parent ca39340 commit 4a5f6bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/reducers/links/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ export const initialState: State = {
export function links (state: State = initialState, action: Action): State {
switch (action.type) {
case GET_LINKS_PENDING: {
console.log(action)
return {
...state,
errors: {},
fetchStatus: 'loading'
}
}
case GET_LINKS_SUCCESS: {
console.log(action)
const entities = action.payload
return {
...state,
Expand All @@ -44,8 +42,7 @@ export function links (state: State = initialState, action: Action): State {
}
}
case GET_LINKS_FAIL: {
console.log(action)
const errors = action.payload
const {errors} = action.payload
return {
...state,
errors,
Expand Down

0 comments on commit 4a5f6bb

Please sign in to comment.