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(tasks): invalidate moved resources in the initiating window

Tin394cd414ec5b
diff --git a/apps/web/src/hooks/mutations/task/use-move-task.ts b/apps/web/src/hooks/mutations/task/use-move-task.ts
index ac1055ccb..801ebf5db 100644
--- a/apps/web/src/hooks/mutations/task/use-move-task.ts
+++ b/apps/web/src/hooks/mutations/task/use-move-task.ts
@@ -11,6 +11,9 @@ export function useMoveTask() {
mutationFn: moveTask,
onSuccess: (result, variables) => {
toast.success(t("tasks:move.success"));
+ queryClient.invalidateQueries({
+ queryKey: ["external-links", variables.taskId],
+ });
queryClient.invalidateQueries({
queryKey: ["task", variables.taskId],
});