Update client dependencies
This commit is contained in:
parent
42efc20748
commit
81b635a872
18 changed files with 97 additions and 162 deletions
|
@ -1,5 +1,5 @@
|
|||
import { Record, List } from 'immutable';
|
||||
import { UPDATE_LOCATION } from 'react-router-redux';
|
||||
import { LOCATION_CHANGE } from 'react-router-redux';
|
||||
import createReducer from '../util/createReducer';
|
||||
import * as actions from '../actions';
|
||||
|
||||
|
@ -38,7 +38,7 @@ export default createReducer(new State(), {
|
|||
return state.set('history', state.history.filter(tab => tab.server !== action.server));
|
||||
},
|
||||
|
||||
[UPDATE_LOCATION](state, action) {
|
||||
[LOCATION_CHANGE](state, action) {
|
||||
if (action.payload.pathname.indexOf('.') === -1 && state.selected.server) {
|
||||
return state.set('selected', new Tab());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue