CSR-111-parts Cleanup

This commit is contained in:
Katie 2022-08-18 08:49:54 -04:00
parent fa9f4c0ef5
commit fca3c56664

View file

@ -70,9 +70,6 @@ export default {
const currentPage = self.$route.query.fmgPage;
const hasPartQuestions = this.hasPartQuestions(partsOrQuestions)
console.log("hasPartQuestions: ", hasPartQuestions)
console.log("currentPage: ", currentPage)
console.log("this.currentPageComesBeforePage(currentPage, fmgPageValues.PART_QUESTIONS): ", this.currentPageComesBeforePage(currentPage, fmgPageValues.PART_QUESTIONS))
const hasGlassLocationWithMultipleParts = this.hasGlassLocationWithMultipleParts(partsOrQuestions);
const hasChildPartQuestions = this.hasChildPartQuestions(partsOrQuestions);
const hasCapabilityQuestions = this.hasCapabilityQuestions(partsOrQuestions);
@ -91,8 +88,6 @@ export default {
} else if (hasCapabilityQuestions && this.currentPageComesBeforePage(currentPage, fmgPageValues.CAPABILITY_QUESTIONS)) {
// if has capability questions
// go to capability-questions page and pass the partsData
console.log(store.getters.vehicle)
const windshieldPart = partsOrQuestions.filter(x => x.glassLocation === damageLocationsSelected.WINDSHIELD)[0].parts[0];
let capabilityQuestions = (await baseMixin.methods.dispatchStoreAction(storeActions.GET_CAPABILITY_QUESTIONS, {
carId: store.getters.vehicle.carId,