From 715d216efb49c28b67cbf4bb44d855648373f098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 1 Mar 2020 20:41:12 +0100 Subject: [PATCH] bugfix in ##172, forgot to load types second time --- src/components/pricelist/PriceList.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 } } },