Skip to content

Commit

Permalink
lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
tech4him1 committed Feb 7, 2018
1 parent 6c46b38 commit f08535b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Collection/Entries/EntryListing.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export default class EntryListing extends React.Component {
};

renderCardsForMultipleCollections = () => {
const { collections, entries, publicFolder} = this.props;
const { collections, entries, publicFolder } = this.props;
return entries.map((entry, idx) => {
const collectionName = entry.get('collection');
const collection = collections.find(coll => coll.get('name') === collectionName);
const collectionLabel = collection.get('label')
const collectionLabel = collection.get('label');
const inferedFields = this.inferFields(collection);
const entryCardProps = { collection, entry, inferedFields, publicFolder, key: idx, collectionLabel };
return <EntryCard {...entryCardProps}/>;
Expand Down

0 comments on commit f08535b

Please sign in to comment.