diff --git a/src/components/ui/FetchedTags.vue b/src/components/ui/FetchedTags.vue index 8a01c1e79..2e2e9b6e3 100644 --- a/src/components/ui/FetchedTags.vue +++ b/src/components/ui/FetchedTags.vue @@ -26,7 +26,9 @@ const tags = computed(() => { .filter((i) => i.startsWith(`${$props.tag}`)) .reduce((acc, tag) => { const n = tag.split(`${$props.tag}`)[1]; - acc[$props.item[`${$props.tag}${n}`]] = $props.item[`${$props.value}${n}`]; + const key = `${$props.tag}${n}`; + const value = `${$props.value}${n}`; + acc[$props.item[key] ?? key] = $props.item[value] ?? ''; return acc; }, {}); }); @@ -49,11 +51,29 @@ const tags = computed(() => {