From 337c356a31b0d6a9b0886186bf4ef1c584b8a17a Mon Sep 17 00:00:00 2001 From: ALBERICLOOS Date: Thu, 23 May 2024 21:40:06 +0200 Subject: [PATCH] fix --- frontend/src/pages/teacher/CreateProject.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/teacher/CreateProject.tsx b/frontend/src/pages/teacher/CreateProject.tsx index 96db51f2..f3ebd11c 100644 --- a/frontend/src/pages/teacher/CreateProject.tsx +++ b/frontend/src/pages/teacher/CreateProject.tsx @@ -20,7 +20,7 @@ export function CreateProject(): JSX.Element { const emptyProjectTeacher: ProjectTeacher = { projectId: -1, - courseName: data.courses[0].course_name, + courseName: data.courses.filter(course => !course.course_archived)[0].course_name, all_courses: data.courses, deadline: new Date(Date.now()), description: "", @@ -29,7 +29,7 @@ export function CreateProject(): JSX.Element { minutes: 0, amount_groups: 1, otherFilesAllow: false, - visible: false, + visible: true, archived: false, projectName: "", requiredFiles: {