Cope with undefined labels

This commit is contained in:
D. Berge
2022-03-02 19:39:29 +01:00
parent ee9a33513a
commit 8debe60d5c

View File

@@ -221,8 +221,8 @@
<v-chip v-for="label in entry.labels"
class="mr-1 px-2 underline-on-hover"
x-small
:color="labels[label].view.colour"
:title="labels[label].view.description"
:color="labels[label] && labels[label].view.colour"
:title="labels[label] && labels[label].view.description"
:key="label"
:href="$route.path+'?label='+encodeURIComponent(label)"
>{{label}}</v-chip>