Merge pull request #1078 from openreplay/dev
fix(ui) - filter state update
This commit is contained in:
commit
45bf16d260
1 changed files with 3 additions and 3 deletions
|
|
@ -71,11 +71,11 @@ function reducer(state = initialState, action = {}) {
|
|||
case EDIT:
|
||||
return state.mergeIn(['instance'], action.instance).set('currentPage', 1);
|
||||
case APPLY:
|
||||
state.mergeIn(['instance'], action.filter).set('currentPage', 1);
|
||||
const _state = action.fromUrl ? state.set('instance', Filter(action.filter)) : state.mergeIn(['instance'], action.filter);
|
||||
if (action.resetPage) {
|
||||
state.set('currentPage', 1)
|
||||
_state.set('currentPage', 1)
|
||||
}
|
||||
return state
|
||||
return _state
|
||||
case success(FETCH):
|
||||
return state.set('instance', action.data);
|
||||
case success(FETCH_LIST):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue