Skip to content

Commit

Permalink
Reset constants state on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Mar 3, 2019
1 parent be42ac0 commit a72a45e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/shared/reducers/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default function app(state = initialState, action) {
constants: action.payload.data
});
}
case types.SYSTEM_GETCONSTANTS_FAILURE: {
return Object.assign({}, initialState);
}
default: {
return state;
}
Expand Down

0 comments on commit a72a45e

Please sign in to comment.