superdesk/superdesk-client-core

View on GitHub
scripts/apps/authoring-react/fields/dropdown/dropdown-vocabulary/get-options.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getOptions has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function getOptions(
    config: IDropdownConfigVocabulary,
    getVocabularyOptions: (vocabularyId: IVocabulary['_id']) => Array<IVocabularyItem> = getOptionsDefault,
): ITreeWithLookup<IDropdownOption> {
    const vocabularyItems: Array<IVocabularyItem> = getVocabularyOptions(config.vocabularyId);

    There are no issues that match your filters.

    Category
    Status