Skip to content

Commit

Permalink
fix: reset settings when switching isochrone profile (#202)
Browse files Browse the repository at this point in the history
same as when switching direction profile
  • Loading branch information
jthiard committed Nov 11, 2023
1 parent a46a154 commit 37cd6d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controls/Isochrones/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
updateProfile,
doShowSettings,
updatePermalink,
resetSettings,
} from 'actions/commonActions'
import { clearIsos, makeIsochronesRequest } from 'actions/isochronesActions'

Expand All @@ -26,6 +27,7 @@ class IsochronesControl extends React.Component {
handleUpdateProfile = (event, data) => {
const { dispatch } = this.props
dispatch(updateProfile({ profile: data.valhalla_profile }))
dispatch(resetSettings())
dispatch(updatePermalink())
}

Expand Down

0 comments on commit 37cd6d5

Please sign in to comment.