Coursemology/coursemology2

View on GitHub
client/app/bundles/course/duplication/pages/Duplication/DestinationCourseSelector/InstanceDropdown.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function InstanceDropdown has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const InstanceDropdown: FC<InstanceDropdownProps> = (props) => {
  const { disabled, field, fieldState } = props;
  const instances = useAppSelector(selectDestinationInstances);
  const metadata = useAppSelector(selectMetadata);
  const instanceIds = useMemo(() => Object.keys(instances), [instances]);

There are no issues that match your filters.

Category
Status