scripts/core/editor3/components/article-embed/can-add-article-embed.ts
Function canAddArticleEmbed
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function canAddArticleEmbed(
srcId: IArticle['_id'],
destId: IArticle['_id'],
): Promise<{ok: true; src: IArticle} | {ok: false; error: string}> {
return Promise.all([