Forgot to save
This commit is contained in:
parent
8e97a54fbc
commit
2b6ec3d7cf
1 changed files with 3 additions and 11 deletions
|
|
@ -283,19 +283,11 @@ export default {
|
|||
return items;
|
||||
},
|
||||
nonServicePackageCartItems() {
|
||||
const partTypesInOrder = useMainStore().lineItems.vaps?.reduce(
|
||||
(accumulator, vap) => {
|
||||
if (!accumulator.includes(vap.partType)) {
|
||||
accumulator.push(vap.partType);
|
||||
}
|
||||
return accumulator;
|
||||
},
|
||||
[]
|
||||
) ?? [];
|
||||
const partTypesInOrderButNotPackage = partTypesInOrder
|
||||
const vapPartTypesInOrder = Array.from(new Set(useMainStore().lineItems.vaps.map((vap) => vap.partType)));
|
||||
const vapPartTypesInOrderButNotPackage = vapPartTypesInOrder
|
||||
.filter((partType) => !this.partTypesInServicePackage.includes(partType))
|
||||
?? [];
|
||||
const vapsCartItemsNotInPackage = partTypesInOrderButNotPackage.map((partType) => {
|
||||
const vapsCartItemsNotInPackage = vapPartTypesInOrderButNotPackage.map((partType) => {
|
||||
switch (partType) {
|
||||
case partTypeStrings.FRONT_WIPER:
|
||||
return this.frontWipersCartItem;
|
||||
|
|
|
|||
Loading…
Reference in a new issue