diff --git a/src/components/TripForm.js b/src/components/TripForm.js index 29b16ce..e2dbe09 100644 --- a/src/components/TripForm.js +++ b/src/components/TripForm.js @@ -37,7 +37,7 @@ class TripForm extends Component { state = { id: null, - trip_id: "", + trip_id: '', service: null, frequency_set: [], newStopTime: false, @@ -69,9 +69,10 @@ class TripForm extends Component { handleSubmit() { const { id } = this.state - let body = {...this.state } + let body = { ...this.state } delete body.id delete body.newStopTime + delete body.newFrequency if (id !== null) { store.dispatch(updateTrip(id, body)) } else { diff --git a/src/store.js b/src/store.js index 9a8cb44..3b78a28 100644 --- a/src/store.js +++ b/src/store.js @@ -10,7 +10,7 @@ import gruntApp from './reducers' const persistConfig = { key: 'root', storage, - blacklist: ['agency', 'route', 'calendar', 'geo'] + blacklist: ['agency', 'calendar'] } const middleware = [ thunk, apiMiddleware ]