scripts/apps/authoring-react/field-adapters/subject.tsx
Function getSubjectAdapter
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function getSubjectAdapter(): IFieldAdapter<IArticle> {
const getItems: () => ITreeWithLookup<ISubjectCode> = memoize(() => {
const subjectCodes = store.getState().subjectCodes;
return ({