commit
37a8150e6a
1 changed files with 4 additions and 1 deletions
|
|
@ -1871,7 +1871,6 @@ export const actions = {
|
|||
if (isDamageChanging) {
|
||||
//Reset dependent state when changing
|
||||
context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
|
||||
context.commit(storeMutations.UPDATE_VAPS, null);
|
||||
|
||||
// Save new values
|
||||
context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair);
|
||||
|
|
@ -1881,6 +1880,10 @@ export const actions = {
|
|||
);
|
||||
context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace);
|
||||
}
|
||||
const updateVaps = !isGlassToReplaceTheSame && isWindshieldRepairTheSame;
|
||||
if (updateVaps) {
|
||||
context.commit(storeMutations.UPDATE_VAPS, null);
|
||||
}
|
||||
},
|
||||
|
||||
// Vin lookup
|
||||
|
|
|
|||
Loading…
Reference in a new issue