From a9d9ecdedd72070c8a96b3b1b9d67c259781b31c Mon Sep 17 00:00:00 2001 From: Stephannie Jimenez Date: Tue, 12 Dec 2023 00:10:43 -0500 Subject: [PATCH] fix: fix linting issues --- src/course-outline/CourseOutline.jsx | 4 ++-- src/course-outline/data/api.js | 4 ++-- src/course-outline/section-card/SectionCard.jsx | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/course-outline/CourseOutline.jsx b/src/course-outline/CourseOutline.jsx index 17b49d12ec..44726ed4a8 100644 --- a/src/course-outline/CourseOutline.jsx +++ b/src/course-outline/CourseOutline.jsx @@ -119,10 +119,10 @@ const CourseOutline = ({ courseId }) => { useEffect(() => { if (sectionsList) { setSections((prevSections) => { - if(prevSections.length < sectionsList.length) { + if (prevSections.length < sectionsList.length) { scrollToElement(listRef); } - return sectionsList + return sectionsList; }); } }, [sectionsList]); diff --git a/src/course-outline/data/api.js b/src/course-outline/data/api.js index aef8276292..702715ce8f 100644 --- a/src/course-outline/data/api.js +++ b/src/course-outline/data/api.js @@ -299,8 +299,8 @@ export async function addNewCourseItem(parentLocator, category, displayName) { /** * Set order for the list of the sections - * @param {string} courseBlockId - * @param {Array} list of sections id's + * @param {string} courseId + * @param {Array} children list of sections id's * @returns {Promise} */ export async function setSectionOrderList(courseId, children) { diff --git a/src/course-outline/section-card/SectionCard.jsx b/src/course-outline/section-card/SectionCard.jsx index 9543280a83..1655776d60 100644 --- a/src/course-outline/section-card/SectionCard.jsx +++ b/src/course-outline/section-card/SectionCard.jsx @@ -1,4 +1,6 @@ -import React, { forwardRef, useEffect, useState, useRef } from 'react'; +import React, { + forwardRef, useEffect, useState, useRef, +} from 'react'; import { useDrag, useDrop } from 'react-dnd'; import PropTypes from 'prop-types'; import { useDispatch } from 'react-redux';