diff --git a/src/components/pricelist/PriceList.vue b/src/components/pricelist/PriceList.vue index 1eb5571..353da63 100644 --- a/src/components/pricelist/PriceList.vue +++ b/src/components/pricelist/PriceList.vue @@ -463,9 +463,10 @@ export default { }, computeType() { return id => { - return this.types.find(a => { - return a.id === id - }).name + const type = this.types.find(a => { + return a.id === id + }) + return type ? type.name : null } } },