mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Set session CWD only if there is an active session (#2191)
This commit is contained in:
parent
01f7779646
commit
b5f06759ee
1 changed files with 4 additions and 1 deletions
|
|
@ -100,7 +100,10 @@ const reducer = (state = initialState, action) => {
|
|||
}));
|
||||
|
||||
case SESSION_SET_CWD:
|
||||
if (state.activeUid) {
|
||||
return state.setIn(['sessions', state.activeUid, 'cwd'], action.cwd);
|
||||
}
|
||||
return state;
|
||||
|
||||
default:
|
||||
return state;
|
||||
|
|
|
|||
Loading…
Reference in a new issue