superdesk/superdesk-client-core

View on GitHub
scripts/api/article-duplicate.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function duplicateItems has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function duplicateItems(items: Array<IArticle>, destination: ISendToDestination): Promise<Array<IArticle>> {
    return Promise.all(
        items.map((item) => {
            const payload = (() => {
                if (destination.type === 'personal-space') {
Severity: Minor
Found in scripts/api/article-duplicate.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status