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,
|
commandShown: false,
|
||||||
});
|
});
|
||||||
case actions.CONSOLE_HIDE:
|
case actions.CONSOLE_HIDE:
|
||||||
|
if (state.errorShown) {
|
||||||
|
// keep error message if shown
|
||||||
|
return state;
|
||||||
|
}
|
||||||
return Object.assign({}, state, {
|
return Object.assign({}, state, {
|
||||||
errorShown: false,
|
errorShown: false,
|
||||||
commandShown: false
|
commandShown: false
|
||||||
|
|
Reference in a new issue