scripts/apps/authoring-react/fields/dropdown/dropdown-vocabulary/get-options.ts
Function getOptions
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getOptions(
config: IDropdownConfigVocabulary,
getVocabularyOptions: (vocabularyId: IVocabulary['_id']) => Array<IVocabularyItem> = getOptionsDefault,
): ITreeWithLookup<IDropdownOption> {
const vocabularyItems: Array<IVocabularyItem> = getVocabularyOptions(config.vocabularyId);