superdesk/superdesk-client-core

View on GitHub
scripts/apps/search/components/MediaPreview.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function MediaPreview has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const MediaPreview: React.StatelessComponent<IProps> = (props) => {
    const {item, multiSelect} = props;
    const headline = item.headline || item.slugline || item.type;
    // headline could contains html tags hence stripping for tooltips
    const headlineText = headline.replace(/(<([^>]+)>)/ig, '');
Severity: Minor
Found in scripts/apps/search/components/MediaPreview.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status