Fix roles table showing tags with a label of undefined
This commit is contained in:
parent
84510d0551
commit
478ec4c090
|
@ -4,8 +4,9 @@
|
||||||
|
|
||||||
const displayLimit = 5
|
const displayLimit = 5
|
||||||
|
|
||||||
$: tags = value?.slice(0, displayLimit) ?? []
|
$: roles = value?.filter(role => role != null) ?? []
|
||||||
$: leftover = (value?.length ?? 0) - tags.length
|
$: tags = roles.slice(0, displayLimit)
|
||||||
|
$: leftover = roles.length - tags.length
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tags>
|
<Tags>
|
||||||
|
|
Loading…
Reference in New Issue