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: invalidate field value after task creation

MonsPropre6d2bd42ea061
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 f0613b763..d99e0143c 100644
--- a/apps/web/src/hooks/mutations/task/use-create-task.ts
+++ b/apps/web/src/hooks/mutations/task/use-create-task.ts
@@ -33,6 +33,9 @@ function useCreateTask() {
void queryClient.invalidateQueries({
queryKey: ["tasks", variables.projectId],
});
+ void queryClient.invalidateQueries({
+ queryKey: ["custom-field-values", variables.projectId],
+ });
},
});
}