const instead of let
This commit is contained in:
parent
2b526f3a7d
commit
c35676963e
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ const routes = [
|
||||||
// If we already have our route, go to it.
|
// If we already have our route, go to it.
|
||||||
if (router.hasRoute(to.query.fmgPage)) {
|
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.
|
// 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()
|
.getRoutes()
|
||||||
.filter((x) => x.name === to.query.fmgPage)[0]
|
.filter((x) => x.name === to.query.fmgPage)[0]
|
||||||
.components.default.methods.arePagePrerequisitesValid();
|
.components.default.methods.arePagePrerequisitesValid();
|
||||||
|
|
@ -69,7 +69,7 @@ const routes = [
|
||||||
|
|
||||||
// Call the next components arePagePrerequisitesValid method before load.
|
// Call the next components arePagePrerequisitesValid method before load.
|
||||||
// If it returns false, use the 404 logic.
|
// If it returns false, use the 404 logic.
|
||||||
let nextComponent = await router
|
const nextComponent = await router
|
||||||
.getRoutes()
|
.getRoutes()
|
||||||
.filter((x) => x.name === routeData[0].name)[0]
|
.filter((x) => x.name === routeData[0].name)[0]
|
||||||
.components.default();
|
.components.default();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue