Fix roles table showing tags with a label of undefined
This commit is contained in:
parent
bf935183ce
commit
ac3edb2f60
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue