From 81414dfa4ea1414d7254f796f9ba801b7b44476a Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 15 Oct 2024 09:40:45 -0400 Subject: [PATCH 1/2] Temp fix Until conversation --- src/layouts/vehicle-damage/vehicle-damage.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/vehicle-damage/vehicle-damage.vue b/src/layouts/vehicle-damage/vehicle-damage.vue index 1561a3bd..b2394b82 100644 --- a/src/layouts/vehicle-damage/vehicle-damage.vue +++ b/src/layouts/vehicle-damage/vehicle-damage.vue @@ -417,6 +417,8 @@ export default { const results = await Promise.allSettled([useMainStore().getSupportingItems(), useMainStore().getRecalParts()]); const supportingItems = results[0]; useMainStore().updateSupportingItems(supportingItems.data); + } else { + useMainStore().updateSupportingItems([]); } if (this.mainStore.damage.isRepair) { From 01d3afb21aeb2a0f7a8dac08b36e1d08ae46ff96 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Tue, 15 Oct 2024 11:08:35 -0400 Subject: [PATCH 2/2] we also clear it further down the line. --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index c4c3b903..f9eb378d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1841,7 +1841,7 @@ export const useMainStore = defineStore({ }, updateSupportingItems(partsData) { if (partsData == null) { - this.order.lineItems.supportingItems = null; + this.order.lineItems.supportingItems = []; return; }