dopry/netlify-cms

View on GitHub
src/components/EntryListing/EntryListing.js

Summary

Maintainability
A
1 hr
Test Coverage

Function renderCard has 29 lines of code (exceeds 25 allowed). Consider refactoring.
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]);
Severity: Minor
Found in src/components/EntryListing/EntryListing.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status