1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00

Fix roles table showing tags with a label of undefined

This commit is contained in:
Andrew Kingston 2021-05-18 19:03:59 +01:00
parent 84510d0551
commit 478ec4c090

View file

@ -4,8 +4,9 @@
const displayLimit = 5
$: tags = value?.slice(0, displayLimit) ?? []
$: leftover = (value?.length ?? 0) - tags.length
$: roles = value?.filter(role => role != null) ?? []
$: tags = roles.slice(0, displayLimit)
$: leftover = roles.length - tags.length
</script>
<Tags>