Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: create task not inserting custom field

MonsPropre35a9e53f2ee2
diff --git a/apps/web/src/hooks/mutations/task/use-create-task.ts b/apps/web/src/hooks/mutations/task/use-create-task.ts
index 14f61dc39..f0613b763 100644
--- a/apps/web/src/hooks/mutations/task/use-create-task.ts
+++ b/apps/web/src/hooks/mutations/task/use-create-task.ts
@@ -16,6 +16,7 @@ function useCreateTask() {
startDate,
dueDate,
priority,
+ customFields,
}: CreateTaskRequest) =>
createTask(
title,
@@ -26,6 +27,7 @@ function useCreateTask() {
startDate ? new Date(startDate) : undefined,
dueDate ? new Date(dueDate) : undefined,
priority,
+ customFields,
),
onSuccess: (_data, variables) => {
void queryClient.invalidateQueries({