Skip to content

Commit

Permalink
made tag_name key instead of index
Browse files Browse the repository at this point in the history
Signed-off-by: Allison Suarez Miranda <asuarezmiranda@lyft.com>
  • Loading branch information
allisonsuarez committed Aug 11, 2020
1 parent b1c141a commit c8779cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const TagsListBlock: React.FC<TagsListBlockProps> = ({
}: TagsListBlockProps) => {
return (
<div id="tags-list" className="tags-list">
{tags.map((tag, index) => (
<TagInfo data={tag} compact={false} key={index} />
{tags.map((tag) => (
<TagInfo data={tag} compact={false} key={tag.tag_name} />
))}
</div>
);
Expand Down

0 comments on commit c8779cd

Please sign in to comment.