superdesk/superdesk-client-core

View on GitHub
scripts/apps/publish-preview/previewModal.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function render has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        const {closeModal} = this.props;

        const subscribers = this.props.subscribers.filter(
            ({destinations}) => (destinations ?? []).some((dest) => publishPreviewEnabled(dest)),
Severity: Major
Found in scripts/apps/publish-preview/previewModal.tsx - About 2 hrs to fix

    Function openPreviewForItem has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        openPreviewForItem(subscriberId, format, endpointUrl) {
            const {itemId} = this.props;
            const urls = ng.get('urls');
    
            const nextWindow = window.open();
    Severity: Minor
    Found in scripts/apps/publish-preview/previewModal.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status