scripts/core/interactive-article-actions-panel/subcomponents/controlled-vocabulary-select.tsx
Function render
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const selectedIds = new Set(this.props.value.map(({qcode}) => qcode));
const itemsExcludingSelected = this.props.vocabularies.filter(({qcode}) => selectedIds.has(qcode) !== true);
return (