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

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ALBERICLOOS committed May 23, 2024
1 parent 8fabdf4 commit 337c356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/teacher/CreateProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
Expand All @@ -29,7 +29,7 @@ export function CreateProject(): JSX.Element {
minutes: 0,
amount_groups: 1,
otherFilesAllow: false,
visible: false,
visible: true,
archived: false,
projectName: "",
requiredFiles: {
Expand Down

0 comments on commit 337c356

Please sign in to comment.