Skip to content

Commit

Permalink
fix: fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
steff456 authored and navinkarkera committed Dec 13, 2023
1 parent f04b636 commit a9d9ecd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 2 additions & 2 deletions src/course-outline/data/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ export async function addNewCourseItem(parentLocator, category, displayName) {

/**
* Set order for the list of the sections
* @param {string} courseBlockId
* @param {Array<string>} list of sections id's
* @param {string} courseId
* @param {Array<string>} children list of sections id's
* @returns {Promise<Object>}
*/
export async function setSectionOrderList(courseId, children) {
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 a9d9ecd

Please sign in to comment.