From 700e5818cf7731f82e11ed2744bf75c7c3fae14d Mon Sep 17 00:00:00 2001 From: Hassan Mohamed <42610032+Hassan950@users.noreply.github.com> Date: Thu, 8 Dec 2022 14:04:29 +0200 Subject: [PATCH] fix: request is loaded after removeRoutes() is called (#285) (h/t @Hassan950) --- src/actions/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/actions/index.js b/src/actions/index.js index 71fabaa..ee86d4c 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -189,6 +189,7 @@ export function clearOrigin() { } export function clearDestination() { + request.abort(); return dispatch => { dispatch({ type: types.DESTINATION_CLEAR