Handle tags on eventlistcard properly

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-12-01 17:34:17 +01:00
parent cb4b251c77
commit 4e27d04569
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -22,7 +22,7 @@
</b-tag>
<router-link
:to="{ name: RouteName.TAG, params: { tag: tag.title } }"
v-for="tag in event.tags.slice(0, 3)"
v-for="tag in (event.tags || []).slice(0, 3)"
:key="tag.slug"
>
<b-tag type="is-light">{{ tag.title }}</b-tag>