CASH-2180: Make asynchronous

This commit is contained in:
Chris Redelinghuys 2026-01-15 15:52:08 -05:00
parent d12a845417
commit d789a37e7b

View file

@ -164,7 +164,7 @@ export default {
// await any pending save-sessions. if you don't, we will save the new parent account into vuex and then a pending async save-session response overwrites it // await any pending save-sessions. if you don't, we will save the new parent account into vuex and then a pending async save-session response overwrites it
await flushSaveSessionQueue(); await flushSaveSessionQueue();
this.removeQPDLineItemIfExists(); await this.removeQPDLineItemIfExists();
await this.dispatchStoreAction( await this.dispatchStoreAction(
this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER, this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER,
@ -195,12 +195,12 @@ export default {
handlePageShow() { handlePageShow() {
window.location.reload(); window.location.reload();
}, },
removeQPDLineItemIfExists() { async removeQPDLineItemIfExists() {
const lineItems = deepClone(store.getters.order.lineItems); const lineItems = deepClone(store.getters.order.lineItems);
lineItems.supportingItems = baseMixin.methods.filterOutQuotePageDiscountPart( lineItems.supportingItems = baseMixin.methods.filterOutQuotePageDiscountPart(
lineItems.supportingItems lineItems.supportingItems
); );
baseMixin.methods.dispatchStoreAction( await baseMixin.methods.dispatchStoreAction(
storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING, storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING,
lineItems.supportingItems, lineItems.supportingItems,
false false