This commit is contained in:
Sneha 2023-12-20 13:02:45 +05:30
parent c438164f56
commit f8b49e1713

View file

@ -1871,7 +1871,6 @@ export const actions = {
if (isDamageChanging) { if (isDamageChanging) {
//Reset dependent state when changing //Reset dependent state when changing
context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES); context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
context.commit(storeMutations.UPDATE_VAPS, null);
// Save new values // Save new values
context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair); context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair);
@ -1881,6 +1880,10 @@ export const actions = {
); );
context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace); context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace);
} }
const updateVaps = !isGlassToReplaceTheSame && isWindshieldRepairTheSame;
if (updateVaps) {
context.commit(storeMutations.UPDATE_VAPS, null);
}
}, },
// Vin lookup // Vin lookup