diff --git a/src/router/index.js b/src/router/index.js index e05043e5..5fb60cad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -114,7 +114,7 @@ router.navigate = async function (scenario, currentRoute, optionalQuery = {}, op // Navigate to an external url. function navigateToUrl(url, optionalQuery = {}) { // possibly show some loading screen in the future here. - var externalUrl = new URL(url); + let externalUrl = new URL(url); for (const queryKey in optionalQuery) { externalUrl.searchParams.append(queryKey, optionalQuery[queryKey]); @@ -134,7 +134,7 @@ router.getNavigationMap = function (scenario, currentRoute) { item.maps.filter((map) => map.scenario === scenario).length > 0 ); - var maps = matchedQueryValue ? matchedQueryValue.map((m) => m.maps.filter((map) => map.scenario === scenario))[0] : undefined; + let maps = matchedQueryValue ? matchedQueryValue.map((m) => m.maps.filter((map) => map.scenario === scenario))[0] : undefined; return maps ? maps.filter(x => x.filter === true || x.filter === undefined)[0] : undefined; }