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;
|
const isVinRequired = useMainStore().order.vehicle.vinRequired;
|
||||||
if (isVinRequired) {
|
if (isVinRequired) {
|
||||||
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
const vinIndex = answers.findIndex(answer => answer.Name === vinLookupMethodSelections.NOVIN);
|
||||||
answers.splice(vinIndex, 1);
|
if (vinIndex >= 0) {
|
||||||
|
answers.splice(vinIndex, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.answersFromCms = answers;
|
this.answersFromCms = answers;
|
||||||
|
|
|
||||||
|
|
@ -271,22 +271,20 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mainStore.order.vehicle.vinRequired) {
|
if (this.mainStore.order.vehicle.vinRequired) {
|
||||||
const partsOrQuestionsResponse = await this.getPartsOrQuestionsVinRequired()
|
try {
|
||||||
.then(async (response) => {
|
const partsOrQuestionsResponse = await this.getPartsOrQuestionsVinRequired();
|
||||||
await this.navigateForward(
|
await this.navigateForward(
|
||||||
partsOrQuestionsResponse.data.partsOrQuestions,
|
partsOrQuestionsResponse.data.partsOrQuestions,
|
||||||
this
|
this
|
||||||
);
|
);
|
||||||
return response;
|
} catch (e) {
|
||||||
})
|
|
||||||
.catch((e) => {
|
|
||||||
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(this.vehicleFromLookup.carId));
|
this.mainStore.setBailout(bailoutMessage.HeavyTruckVehicle(this.vehicleFromLookup.carId));
|
||||||
this.$router.navigate(
|
this.$router.navigate(
|
||||||
this.navigationScenarios.BAILOUT,
|
this.navigationScenarios.BAILOUT,
|
||||||
this.$route
|
this.$route
|
||||||
);
|
);
|
||||||
throw e;
|
throw e;
|
||||||
});
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue