Copilot updates
This commit is contained in:
parent
a62062899f
commit
2fca5d2fa5
2 changed files with 7 additions and 7 deletions
|
|
@ -69,7 +69,9 @@ export default {
|
|||
const isVinRequired = useMainStore().order.vehicle.vinRequired;
|
||||
if (isVinRequired) {
|
||||
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
||||
answers.splice(vinIndex, 1);
|
||||
if (vinIndex >= 0) {
|
||||
answers.splice(vinIndex, 1);
|
||||
}
|
||||
}
|
||||
|
||||
this.answersFromCms = answers;
|
||||
|
|
|
|||
|
|
@ -271,22 +271,20 @@ export default {
|
|||
}
|
||||
|
||||
if (this.mainStore.order.vehicle.vinRequired) {
|
||||
const partsOrQuestionsResponse = await this.getPartsOrQuestionsVinRequired()
|
||||
.then(async (response) => {
|
||||
try {
|
||||
const partsOrQuestionsResponse = await this.getPartsOrQuestionsVinRequired();
|
||||
await this.navigateForward(
|
||||
partsOrQuestionsResponse.data.partsOrQuestions,
|
||||
this
|
||||
);
|
||||
return response;
|
||||
})
|
||||
.catch((e) => {
|
||||
} catch (e) {
|
||||
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(this.vehicleFromLookup.carId));
|
||||
this.$router.navigate(
|
||||
this.navigationScenarios.BAILOUT,
|
||||
this.$route
|
||||
);
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue