Silence error on non-existent label definition

This commit is contained in:
D. Berge
2022-05-04 19:42:53 +02:00
parent 546bc45861
commit ce0310d0b0

View File

@@ -188,9 +188,9 @@ export default {
labelToItem (k) {
return {
text: k,
icon: this.labels[k].view?.icon,
colour: this.labels[k].view?.colour,
title: this.labels[k].view?.description
icon: this.labels?.[k]?.view?.icon,
colour: this.labels?.[k]?.view?.colour,
title: this.labels?.[k]?.view?.description
};
},