diff --git a/src/reducers/stoptime.js b/src/reducers/stoptime.js index 33cb1c6..d78f237 100644 --- a/src/reducers/stoptime.js +++ b/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,