Skip to content

Commit

Permalink
fix(ui): fixed bug with Article Table Keyword elements not have uniqu…
Browse files Browse the repository at this point in the history
…e key
  • Loading branch information
flamingquaks committed Jun 28, 2024
1 parent 9fb68ab commit 275c83e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ export const ArticlesTableColumnDefinition = (
{
id: 'keywords',
cell: (item: Article) => (
<SpaceBetween size="xs" direction="horizontal">
<SpaceBetween key={'keywords-'+item.keywords+'spacer'} size="xs" direction="horizontal">
{item.keywords?.split(',').map((keyword: string) => {
return <Badge color="blue">{keyword}</Badge>
return <Badge key={'keywords-' + item.keywords + '-' + keyword} color="blue">{keyword}</Badge>
})}
</SpaceBetween>
),
Expand Down

0 comments on commit 275c83e

Please sign in to comment.