Reset the filter after fetching
This commit is contained in:
parent
76b2859d88
commit
6c5d5e11fd
@ -27,6 +27,8 @@ export default function movieStore(state = defaultState, action) {
|
||||
return Object.assign({}, state, {
|
||||
movies: action.payload.data,
|
||||
selectedImdbId: selectedImdbId,
|
||||
filter: defaultState.filter,
|
||||
perPage: defaultState.perPage,
|
||||
loading: false,
|
||||
})
|
||||
case 'MOVIE_GET_DETAILS_PENDING':
|
||||
|
@ -28,6 +28,8 @@ export default function showStore(state = defaultState, action) {
|
||||
return Object.assign({}, state, {
|
||||
shows: action.payload.data,
|
||||
selectedImdbId: selectedImdbId,
|
||||
filter: defaultState.filter,
|
||||
perPage: defaultState.perPage,
|
||||
loading: false,
|
||||
})
|
||||
case 'SHOW_GET_DETAILS_PENDING':
|
||||
|
Loading…
x
Reference in New Issue
Block a user