|
|
|
@ -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, |
|
|
|
|