Skip to content
Snippets Groups Projects
Commit c39688e7 authored by Kyle Doherty's avatar Kyle Doherty
Browse files

fix react key warning on recent views

parent 1a1da211
No related branches found
No related tags found
No related merge requests found
......@@ -36,8 +36,8 @@ export default class RecentViews extends Component {
<div className="rounded bg-white" style={{border: '1px solid #E5E5E5'}}>
{recentViews.length > 0 ?
<ul className="px3 py2">
{recentViews.map(item =>
<li key={item.id} className="py1 ml1">
{recentViews.map((item, index) =>
<li key={index} className="py1 ml1">
<a className="link text-dark" href={Urls.modelToUrl(item.model, item.model_id)}>{item.model_object.name}</a>
</li>
)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment