From d789a37e7bf5af8d4a8b7e181417ad1d2e5a82f8 Mon Sep 17 00:00:00 2001 From: Chris Redelinghuys Date: Thu, 15 Jan 2026 15:52:08 -0500 Subject: [PATCH] CASH-2180: Make asynchronous --- src/layouts/insurance-company/insurance-company.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/layouts/insurance-company/insurance-company.vue b/src/layouts/insurance-company/insurance-company.vue index 4da99fec9..1455847bd 100644 --- a/src/layouts/insurance-company/insurance-company.vue +++ b/src/layouts/insurance-company/insurance-company.vue @@ -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 flushSaveSessionQueue(); - this.removeQPDLineItemIfExists(); + await this.removeQPDLineItemIfExists(); await this.dispatchStoreAction( this.storeActions.SAVE_PARENT_ACCOUNT_NUMBER, @@ -195,12 +195,12 @@ export default { handlePageShow() { window.location.reload(); }, - removeQPDLineItemIfExists() { + async removeQPDLineItemIfExists() { const lineItems = deepClone(store.getters.order.lineItems); lineItems.supportingItems = baseMixin.methods.filterOutQuotePageDiscountPart( lineItems.supportingItems ); - baseMixin.methods.dispatchStoreAction( + await baseMixin.methods.dispatchStoreAction( storeActions.SAVE_SUPPORTING_ITEMS_SUPPRESSING_STATE_RESETTING, lineItems.supportingItems, false