From e80c0a1b1a61fb65c367df1df0a145acb45b36fd Mon Sep 17 00:00:00 2001 From: sipp11 Date: Wed, 18 Jul 2018 19:48:29 +0900 Subject: [PATCH] wip --- src/reducers/stoptime.js | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,