feat: Select Inbox project by default when creating a task

This commit is contained in:
2024-03-13 08:44:45 +01:00
parent 751ee38d32
commit 8d49154be3
3 changed files with 3 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ export function PlanTask({ notification, mutate }: PlanTaskProps) {
const { handleSubmit, itemProps } = useForm<TaskPlanningFormValues>({
initialValues: {
dueAt: new Date(),
project: projects?.find((p) => p.name === "Inbox")?.source_id,
priority: `${TaskPriority.P4 as number}`,
},
async onSubmit(values) {