superdesk/superdesk-client-core

View on GitHub
scripts/core/interactive-article-actions-panel/subcomponents/controlled-vocabulary-select.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

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

    render() {
        const selectedIds = new Set(this.props.value.map(({qcode}) => qcode));
        const itemsExcludingSelected = this.props.vocabularies.filter(({qcode}) => selectedIds.has(qcode) !== true);

        return (

    There are no issues that match your filters.

    Category
    Status