From c35676963e456f7edd518b4f2c7435f3d975530e Mon Sep 17 00:00:00 2001 From: FrankRua Date: Fri, 28 Jan 2022 11:00:32 -0500 Subject: [PATCH] const instead of let --- 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 229c51da4..eb4942d6a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -45,7 +45,7 @@ const routes = [ // If we already have our route, go to it. if (router.hasRoute(to.query.fmgPage)) { // Since our route is already in scope, we can grab the component from it and call the arePagePrerequisitesValid function. - let arePagePrerequisitesValid = router + const arePagePrerequisitesValid = router .getRoutes() .filter((x) => x.name === to.query.fmgPage)[0] .components.default.methods.arePagePrerequisitesValid(); @@ -69,7 +69,7 @@ const routes = [ // Call the next components arePagePrerequisitesValid method before load. // If it returns false, use the 404 logic. - let nextComponent = await router + const nextComponent = await router .getRoutes() .filter((x) => x.name === routeData[0].name)[0] .components.default();