Skip to content

Commit

Permalink
fix: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 committed Dec 12, 2023
1 parent 8b312e8 commit 62d03c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/course-outline/CourseOutline.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
4 changes: 3 additions & 1 deletion src/course-outline/section-card/SectionCard.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 62d03c6

Please sign in to comment.