Added code to reset appointment type and provider / mobile address when glass parts / supporting items / service zip changes
This commit is contained in:
parent
0de4624142
commit
239faec2f7
2 changed files with 2 additions and 5 deletions
|
|
@ -442,10 +442,7 @@ export default {
|
|||
const collectedGlassParts = this.reducedGlassPartsArray(partsOrQuestions);
|
||||
|
||||
// save to store lineItems.glassParts
|
||||
await baseMixin.methods.dispatchStoreAction(
|
||||
storeActions.SAVE_GLASS_PARTS,
|
||||
collectedGlassParts
|
||||
);
|
||||
self.$store.dispatch(storeActions.SAVE_GLASS_PARTS, collectedGlassParts);
|
||||
|
||||
const payment = store.getters.payment;
|
||||
|
||||
|
|
|
|||
|
|
@ -1776,7 +1776,7 @@ export const actions = {
|
|||
},
|
||||
|
||||
saveSupportingItems(context, supportingItems) {
|
||||
if (!deepEqual(supportingItems, context.getters.order.lineItems.supportingItems)) {
|
||||
if (!deepEqual(supportingItems, context.state.order.lineItems.supportingItems)) {
|
||||
context.commit(storeMutations.RESET_SERVICE_LOCATION_APPOINTMENT_TYPE);
|
||||
context.commit(storeMutations.RESET_SERVICE_LOCATION_PROVIDER);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue