Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kreafox committed Mar 3, 2023
1 parent c6353ce commit 16aacfa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions searchlib/components/Result/ContentClusters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ const ContentClusters = ({ clusters, item }) => {
</>
)}
{index < Object.keys(displayClusters).length - 1 ? ', ' : ''}
{formats_to_show.map((format_to_show) => {
return <span className="fileformat-icon">{format_to_show}</span>;
{formats_to_show.map((format_to_show, i) => {
return (
<span key={i} className="fileformat-icon">
{format_to_show}
</span>
);
})}
</div>
</div>
Expand Down

0 comments on commit 16aacfa

Please sign in to comment.