src/components/EntryListing/EntryListing.js
Function renderCard
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCard(collection, entry, inferedFields, publicFolder) {
const path = `/collections/${ collection.get('name') }/entries/${ entry.get('slug') }`;
const label = entry.get('label');
const title = label || entry.getIn(['data', inferedFields.titleField]);
let image = entry.getIn(['data', inferedFields.imageField]);