From 383831669971a53d0ea92a83fda5b86c2f41a836 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 11 Feb 2022 17:12:28 -0500 Subject: [PATCH] CSR-254: refactoring, restored commented out test code --- .../damage-location-question/damage-location-question.vue | 4 +--- .../windshield-chip-count-question.vue | 0 src/router/index.js | 6 +++--- src/ux-components/list-card/list-card.vue | 6 ++---- 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 src/layouts/vehicle-damage/windshield-chip-count-question/windshield-chip-count-question.vue diff --git a/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue b/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue index 345a16d1e..ec257ceec 100644 --- a/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue +++ b/src/layouts/vehicle-damage/damage-location-question/damage-location-question.vue @@ -68,15 +68,13 @@ export default ({ } }, answersToDisplay(){ - const data = Array.isArray(this.answersFromCms) + return Array.isArray(this.answersFromCms) ? this.answersFromCms.filter(ans => { const name = ans.Name.split('-'); return name[0].toUpperCase() === store.getters.vehicle.category && this.damageOptionsMap[name[1]]; }) : []; - console.log('data: ', data); - return data; }, }, components: { diff --git a/src/layouts/vehicle-damage/windshield-chip-count-question/windshield-chip-count-question.vue b/src/layouts/vehicle-damage/windshield-chip-count-question/windshield-chip-count-question.vue deleted file mode 100644 index e69de29bb..000000000 diff --git a/src/router/index.js b/src/router/index.js index 364ef9594..133a4106e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -74,9 +74,9 @@ const routes = [ .filter((x) => x.name === routeData[0].name)[0] .components.default(); - // if (!arePagePrerequisitesValid(nextComponent)) { - // await GoToFunnelStartOn404(next); - // } + if (!arePagePrerequisitesValid(nextComponent)) { + await GoToFunnelStartOn404(next); + } // Assign current query string parameters, as well as our fmgPage one. next({ diff --git a/src/ux-components/list-card/list-card.vue b/src/ux-components/list-card/list-card.vue index ebc52b83f..7550c9ec4 100644 --- a/src/ux-components/list-card/list-card.vue +++ b/src/ux-components/list-card/list-card.vue @@ -48,7 +48,6 @@