Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ALBERICLOOS committed May 23, 2024
1 parent 8cfbd8d commit 9b43ba0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/ProjectTeacherComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {useNavigate} from "react-router-dom";
import {project_create_group, update_project} from "../utils/api/Project.ts";
import {getScrollbarWidth} from "../utils/ScrollBarWidth.ts";
import Switch from "react-switch";
import { MdRestore } from "react-icons/md";
import {MdRestore} from "react-icons/md";

export function ProjectTeacherComponent(props: {
project: ProjectTeacher,
Expand Down Expand Up @@ -95,7 +95,7 @@ export function ProjectTeacherComponent(props: {
}
};

const course_options = props.project.all_courses.map(course => course.course_name);
const course_options = props.project.all_courses.filter(course => !course.course_archived).map(course => course.course_name);

const hours_array = Array.from({length: 24}, (_, index) => index.toString().padStart(2, '0'));
const minutes_array = Array.from({length: 60}, (_, index) => index.toString().padStart(2, '0'));
Expand Down Expand Up @@ -373,12 +373,12 @@ export function ProjectTeacherComponent(props: {
<FaEraser/>
</button>
</span>
}
}
{initialValues.value10 !== "" && initialValues.value10 !== dockerString &&
<span>
<button className="download-button button is-small is-light"
onClick={handleRestoreDocker}>
<MdRestore />
<MdRestore/>
</button>
</span>
}
Expand Down

0 comments on commit 9b43ba0

Please sign in to comment.