fix: show me and handle null
All checks were successful
deploy / deploy (push) Successful in 5m28s

This commit is contained in:
ndsboy 2025-03-03 20:09:39 +00:00
parent 1f13455b30
commit c48098d362

View file

@ -12,7 +12,7 @@
@click="router.push(`${collection}/${item.id}`)">
<VListItemIcon>
<VIcon
:name="fields.find(f => f.field == 'category')?.meta?.options?.choices.find((c: any) => c.value == item.category).icon"
:name="fields.find(f => f.field == 'category')?.meta?.options?.choices?.find((c: any) => c.value == item.category)?.icon"
:color="item.priority == 'high' ? 'orange' : item.priority == 'normal' ? 'var(--theme--primary)' : 'grey'" />
</VListItemIcon>
<VListItemContent>
@ -24,7 +24,7 @@
<VIcon v-else name="person" />
</VAvatar>
<VIcon v-if="item.responsibles.length == 0" name="person_search" color="green" />
<VIcon v-if="item.responsibles.find(x => x.directus_users_id == me)" name="person_pin_circle" color="blue" />
<VIcon v-if="item.responsibles.find(x => x.directus_users_id.id == me)" name="person_pin_circle" color="blue" />
<VChip v-if="item.date_due" small>
<display-datetime format="short" :value="item.date_due" use24 />
</VChip>