Update index.vue

Update Item page to correct the JSON return for labels and add a fall back if no labels are collected.
This commit is contained in:
Katos
2024-12-26 16:09:00 +00:00
committed by GitHub
parent 5e853513b9
commit 55d11f0b05

View File

@@ -485,7 +485,8 @@
{{ item ? item.name : "" }}
</h1>
<div class="flex flex-wrap gap-2 pb-1">
<LabelChip v-for="label in item?.labels || []" :key="label.id" :label="label" size="sm" />
<LabelChip v-for="label in item?.labels || []" :key="label.id" :label="label.name" size="sm" />
<span v-if="item?.labels.length === 0" class="text-gray-500">No labels</span>
</div>
<div class="flex flex-wrap gap-1 text-wrap text-xs">
<div>