CSR-1384: remove outdated code
This commit is contained in:
parent
820a4387ac
commit
2be4b378c1
1 changed files with 2 additions and 15 deletions
|
|
@ -73,21 +73,8 @@ export default {
|
|||
},
|
||||
},
|
||||
computed: {
|
||||
currentCartItems: {
|
||||
get: function () {
|
||||
return this.modelValue;
|
||||
},
|
||||
set: function (newValue) {
|
||||
// does this.modelValue.vaps have this vap in it already?
|
||||
const inCart = this.currentCartItems.vaps?.some((vap) => {
|
||||
return vap.partType === "RAIN DEFENSE";
|
||||
});
|
||||
const newCartItems = this.currentCartItems;
|
||||
if (!inCart) {
|
||||
newCartItems.vaps.push(newValue);
|
||||
}
|
||||
this.$emit("update:modelValue", newCartItems);
|
||||
},
|
||||
currentCartItems() {
|
||||
return this.modelValue;
|
||||
},
|
||||
showAddRainDefense() {
|
||||
// show if not in cart
|
||||
|
|
|
|||
Loading…
Reference in a new issue