superdesk/superdesk-client-core

View on GitHub
scripts/core/editor3/components/article-embed/can-add-article-embed.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function canAddArticleEmbed has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function canAddArticleEmbed(
    srcId: IArticle['_id'],
    destId: IArticle['_id'],
): Promise<{ok: true; src: IArticle} | {ok: false; error: string}> {
    return Promise.all([

    There are no issues that match your filters.

    Category
    Status