Coursemology/coursemology2

View on GitHub
client/app/bundles/course/assessment/question/text-responses/components/SolutionsManager.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function SolutionsManager has 119 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  (props, ref): JSX.Element => {
    const { disabled, for: originalSolutions, isAssessmentAutograded } = props;
    const [solutions, setSolutions] = useState(originalSolutions);

    const solutionRefs = useRef<Record<SolutionEntity['id'], SolutionRef>>({});

There are no issues that match your filters.

Category
Status