removed get parts call
This commit is contained in:
parent
023cb9e421
commit
18017b7eb0
1 changed files with 1 additions and 11 deletions
|
|
@ -252,18 +252,8 @@ export default {
|
||||||
if (carEntered.carId == carFound.carId || isGlassAvailableForCarId(carFound.carId)) {
|
if (carEntered.carId == carFound.carId || isGlassAvailableForCarId(carFound.carId)) {
|
||||||
navigateAfterSaveToHeritageFunnel(this.$route);
|
navigateAfterSaveToHeritageFunnel(this.$route);
|
||||||
} else {
|
} else {
|
||||||
const partsData = await baseMixin.methods.dispatchNonBlockingStoreAction(
|
|
||||||
this.storeActions.GET_PARTS_OR_QUESTIONS,
|
|
||||||
{
|
|
||||||
carId: carFound.carId,
|
|
||||||
glassArray: store.getters.damage.glassToReplace ? store.getters.damage.glassToReplace : [],
|
|
||||||
zipCode: this.serviceZip ? this.serviceZip : this.zip,
|
|
||||||
vin: carsFound[0].vin
|
|
||||||
}, false
|
|
||||||
);
|
|
||||||
|
|
||||||
// if not then navigate to the "vehicle-damage" page
|
// if not then navigate to the "vehicle-damage" page
|
||||||
this.$router.navigateAfterSave(this.navigationScenarios.CLICKED_FORWARD, this.$route, {}, { displayVehicleChangeAlert: true }, partsData.data);
|
this.$router.navigateAfterSave(this.navigationScenarios.CLICKED_FORWARD, this.$route, {}, { displayVehicleChangeAlert: true }, {});
|
||||||
}
|
}
|
||||||
} else if (carsFound.length > 1) {
|
} else if (carsFound.length > 1) {
|
||||||
// if multiple cars were found
|
// if multiple cars were found
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue