diff --git a/frontend/src/components/ProjectTeacherComponent.tsx b/frontend/src/components/ProjectTeacherComponent.tsx index b7191eac..71080837 100644 --- a/frontend/src/components/ProjectTeacherComponent.tsx +++ b/frontend/src/components/ProjectTeacherComponent.tsx @@ -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, @@ -95,10 +95,10 @@ 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')); + const hours_array = Array.from({length: 24}, (_, index) => index.toString()); + const minutes_array = Array.from({length: 60}, (_, index) => index.toString()); // SimpleTests const [requiredFilesHasChanged, setRequiredFilesHasChanged] = useState(false); @@ -373,12 +373,12 @@ export function ProjectTeacherComponent(props: { - } + } {initialValues.value10 !== "" && initialValues.value10 !== dockerString && }