diff --git a/src/Components/ResourceList.js b/src/Components/ResourceList.js index 8535534f5b7bf05e69ebbc5055ccdc430c17ce7c..3c953fc440bce4203fc9e12408e54702f5a937e0 100644 --- a/src/Components/ResourceList.js +++ b/src/Components/ResourceList.js @@ -119,10 +119,11 @@ export default function ResourceList(props) { </Grid> <Grid container direction="row" justify="flex-start" alignItems="center"> {props.resources.map((r) => { + console.log(r); return ( <ResourceGrid item key={r.title}> <ResourceCardFunction - avatar={r.publisher.avatar} + avatar={r.avatar} id={r.id} thumbnail={r.thumbnail} type={r.object_type ? r.object_type : "Outros"} @@ -131,7 +132,7 @@ export default function ResourceList(props) { likeCount={r.likes_count} liked={r.liked} rating={r.review_average} - author={r.publisher.name} + author={r.title} tags={r.tags} href={"/recurso/" + r.id} downloadableLink={r.default_attachment_location}