From 548a50ae48119b1aaf62bca136c0cdb4eac86fb8 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Thu, 22 Sep 2022 16:19:57 -0400 Subject: [PATCH] updated from var to let per Jeremy's suggestion --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }