Use 'self' link's title to display EntitiesView's title
authorFrank Bessou <frank.bessou@logilab.fr>
Fri, 07 Apr 2017 13:48:34 +0200
changeset 95 3b50d57dfc06
parent 94 8f5072d8e015
child 96 288f2c1973f9
Use 'self' link's title to display EntitiesView's title
src/components/Entities.js
--- a/src/components/Entities.js	Fri Apr 07 10:35:21 2017 +0200
+++ b/src/components/Entities.js	Fri Apr 07 13:48:34 2017 +0200
@@ -38,7 +38,7 @@
     }
 
     function renderTitle() {
-        return props.entities.data.links('collection')[0].title;
+        return props.entities.data.getLink('self').title;
     }
 
     function renderEntities() {