keep error message
This commit is contained in:
parent
fb1d3b5962
commit
ae394e28c0
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ export default function reducer(state = defaultState, action = {}) {
|
|||
commandShown: false,
|
||||
});
|
||||
case actions.CONSOLE_HIDE:
|
||||
if (state.errorShown) {
|
||||
// keep error message if shown
|
||||
return state;
|
||||
}
|
||||
return Object.assign({}, state, {
|
||||
errorShown: false,
|
||||
commandShown: false
|
||||
|
|
Reference in a new issue