Merge pull request #860 from Safelite/feature/richardson/SSR-1518

Temp fix
This commit is contained in:
brich1212safe 2024-10-15 11:17:02 -04:00 committed by GitHub
commit 5b9498499b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -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) {

View file

@ -1841,7 +1841,7 @@ export const useMainStore = defineStore({
},
updateSupportingItems(partsData) {
if (partsData == null) {
this.order.lineItems.supportingItems = null;
this.order.lineItems.supportingItems = [];
return;
}