From a1854eb4f50b67c64e4b670c701ed99727d27ed8 Mon Sep 17 00:00:00 2001 From: Markov Date: Fri, 27 Feb 2026 07:26:52 +0100 Subject: [PATCH] Fix: dedup task in onCreated callback (duplicate with WS task.created) --- src/components/KanbanBoard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/KanbanBoard.tsx b/src/components/KanbanBoard.tsx index 9891702..8560e37 100644 --- a/src/components/KanbanBoard.tsx +++ b/src/components/KanbanBoard.tsx @@ -218,7 +218,7 @@ export default function KanbanBoard({ projectId, projectSlug }: Props) { projectSlug={projectSlug} initialStatus={createInStatus} onClose={() => setCreateInStatus(null)} - onCreated={(task) => setTasks((prev) => [...prev, task])} + onCreated={(task) => setTasks((prev) => prev.some((t) => t.id === task.id) ? prev : [...prev, task])} /> )}