From 37cd6d511bc5e2ac61e1187bc626515d6f0378bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Thiard?= Date: Sat, 11 Nov 2023 18:15:18 +0100 Subject: [PATCH] fix: reset settings when switching isochrone profile (#202) same as when switching direction profile --- src/Controls/Isochrones/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controls/Isochrones/index.js b/src/Controls/Isochrones/index.js index f220b2b..0aae6d8 100644 --- a/src/Controls/Isochrones/index.js +++ b/src/Controls/Isochrones/index.js @@ -13,6 +13,7 @@ import { updateProfile, doShowSettings, updatePermalink, + resetSettings, } from 'actions/commonActions' import { clearIsos, makeIsochronesRequest } from 'actions/isochronesActions' @@ -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()) }