Merge pull request #912 from Safelite/defect/CSR-1013
Fixed logic assigning 'current parts or questions' collection when go…
This commit is contained in:
commit
5cecc7b91c
1 changed files with 10 additions and 4 deletions
|
|
@ -476,18 +476,24 @@ export default {
|
||||||
let currentPartsOrQuestions = null;
|
let currentPartsOrQuestions = null;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
currentPage !== fmgPageValues.CAPABILITY_QUESTIONS &&
|
this.currentPageComesAfterPage(currentPage, fmgPageValues.CAPABILITY_QUESTIONS) &&
|
||||||
!!pageDataCapabilityQuestions
|
!!pageDataCapabilityQuestions
|
||||||
) {
|
) {
|
||||||
currentPartsOrQuestions = pageDataCapabilityQuestions?.partsOrQuestions;
|
currentPartsOrQuestions = pageDataCapabilityQuestions?.partsOrQuestions;
|
||||||
} else if (
|
} else if (
|
||||||
currentPage !== fmgPageValues.MOLDING_QUESTIONS &&
|
this.currentPageComesAfterPage(currentPage, fmgPageValues.MOLDING_QUESTIONS) &&
|
||||||
!!pageDataMoldingQuestions
|
!!pageDataMoldingQuestions
|
||||||
) {
|
) {
|
||||||
currentPartsOrQuestions = pageDataMoldingQuestions?.partsOrQuestions;
|
currentPartsOrQuestions = pageDataMoldingQuestions?.partsOrQuestions;
|
||||||
} else if (currentPage !== fmgPageValues.VEHICLE_PARTS && !!pageDataVehicleParts) {
|
} else if (
|
||||||
|
this.currentPageComesAfterPage(currentPage, fmgPageValues.VEHICLE_PARTS) &&
|
||||||
|
!!pageDataVehicleParts
|
||||||
|
) {
|
||||||
currentPartsOrQuestions = pageDataVehicleParts?.partsOrQuestions;
|
currentPartsOrQuestions = pageDataVehicleParts?.partsOrQuestions;
|
||||||
} else if (currentPage !== fmgPageValues.PARTS_QUESTIONS && !!pageDataPartQuestions) {
|
} else if (
|
||||||
|
this.currentPageComesAfterPage(currentPage, fmgPageValues.PARTS_QUESTIONS) &&
|
||||||
|
!!pageDataPartQuestions
|
||||||
|
) {
|
||||||
currentPartsOrQuestions = pageDataPartQuestions?.partsOrQuestions;
|
currentPartsOrQuestions = pageDataPartQuestions?.partsOrQuestions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue