Replace 'entity' by 'item' in CollectionView
authorFrank Bessou <frank.bessou@logilab.fr>
Fri, 28 Apr 2017 17:26:56 +0200
changeset 164 9edd5ed68ae1
parent 163 3fa4f698fb32
child 165 d2c23dcb2cbb
Replace 'entity' by 'item' in CollectionView
src/components/BaseViews.js
--- a/src/components/BaseViews.js	Fri Apr 28 16:59:28 2017 +0200
+++ b/src/components/BaseViews.js	Fri Apr 28 17:26:56 2017 +0200
@@ -24,9 +24,9 @@
         <ul className="list-group">
             {
                 props.entities.data.mapItems(
-                    entity => (
-                        <li className="list-group-item" key={entity.getLink('item').href}>
-                            <CollectionItemLink item={entity} />
+                    item => (
+                        <li className="list-group-item" key={item.getLink('item').href}>
+                            <CollectionItemLink item={item} />
                         </li>
                         )
                 )