Merge pull request #893 from Safelite/feature/CSR-731
CSR-999 | GetSupportingItems not being called when repair is the only damage
This commit is contained in:
commit
47b1231a3f
1 changed files with 1 additions and 4 deletions
|
|
@ -909,10 +909,7 @@ export const actions = {
|
|||
},
|
||||
|
||||
getSupportingItems(context) {
|
||||
const glassPartsArray = context.getters.lineItems.glassParts;
|
||||
if (!glassPartsArray) {
|
||||
return [];
|
||||
}
|
||||
const glassPartsArray = context.getters.lineItems.glassParts ?? [];
|
||||
const carId = context.getters.vehicle.carId;
|
||||
const isRepair = context.getters.damage.isRepair;
|
||||
const numberOfChips = context.getters.damage.numberOfChips;
|
||||
|
|
|
|||
Loading…
Reference in a new issue