sipp11 7 years ago
parent
commit
e80c0a1b1a
  1. 10
      src/reducers/stoptime.js

10
src/reducers/stoptime.js

@ -1,6 +1,7 @@
import {
STOPTIME_CREATE, STOPTIME_DELETE, STOPTIME_UPDATE,
STOPTIME_REQUEST, STOPTIME_SUCCESS, STOPTIME_FAILURE,
GEO_POLYGON_RESET,
} from '../constants/ActionTypes'
@ -13,6 +14,15 @@ const stoptimeInitState = {
}
const stoptime = (state = stoptimeInitState, action) => {
switch (action.type) {
case GEO_POLYGON_RESET:
return {
...state,
fetching: false,
count: 0,
next: null,
query: '',
results: [],
}
case STOPTIME_REQUEST:
return {
...state,

Loading…
Cancel
Save