Skip to content

Commit

Permalink
split tags into array
Browse files Browse the repository at this point in the history
Signed-off-by: Dejon Gill <dejonjgill@gmail.com>
  • Loading branch information
itsmed committed Jan 30, 2025
1 parent e1d8781 commit 4ef7ae3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const VendorsTable = () => {
header: 'Tags',
cell: ({ row }) => {
const tags = `${row?.original?.tags}`
return <div className={nameRow()}>{tags && tags.length ? tags.map((t) => <Badge>{t}</Badge>) : []}</div>
return <div className={nameRow()}>{tags && tags.length ? tags.split(',').map((t) => <Badge>{t}</Badge>) : []}</div>
},
},
{
Expand Down

0 comments on commit 4ef7ae3

Please sign in to comment.