Skip to content

Commit

Permalink
fix: Fixed assignment update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisBurger committed Oct 30, 2024
1 parent 99e27bd commit dfb6d93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/components/assignments/CreateOrUpdateAssignmentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CreateOrUpdateAssignmentModal = ({
initialValues: {
title: assignment?.title ?? "title",
due_date: assignment?.due_date ? new Date(assignment.due_date) : null,
description: "",
description: assignment?.description ?? "",
language: assignment?.language ?? AssignmentLanguage.QuestionBased,
},
validate: {
Expand Down Expand Up @@ -95,6 +95,8 @@ const CreateOrUpdateAssignmentModal = ({
<DateTimePicker
label="Due date"
clearable
mt={10}
mb={10}
key={form.key("due_date")}
{...form.getInputProps("due_date")}
/>
Expand Down

0 comments on commit dfb6d93

Please sign in to comment.