Skip to content

Commit 75129ca

Browse files
Merge pull request #620 from opentripplanner/june-calltaker-fix-2
fix(actions/form): Use correct local user default query params
2 parents 2149740 + 1574742 commit 75129ca

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: lib/actions/form.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export function resetForm(full = false) {
4040
return function (dispatch, getState) {
4141
const state = getState()
4242
const { transitModes } = state.otp.config.modes
43-
if (state.otp.user.defaults) {
44-
dispatch(settingQueryParam(state.otp.user.defaults))
43+
const { defaults: localUserDefaults } = state.user.localUser
44+
if (localUserDefaults) {
45+
dispatch(settingQueryParam(localUserDefaults))
4546
} else {
4647
// Get user overrides and apply to default query
4748
const userOverrides = coreUtils.storage.getItem('defaultQuery', {})

0 commit comments

Comments
 (0)