keep error message

jh-changes
Shin'ya Ueoka 7 years ago
parent fb1d3b5962
commit ae394e28c0
  1. 4
      src/reducers/console.js

@ -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