diff --git a/frontend/src/components/project/views/ProjectKanban.vue b/frontend/src/components/project/views/ProjectKanban.vue index 30244fe79..de1b3dbf1 100644 --- a/frontend/src/components/project/views/ProjectKanban.vue +++ b/frontend/src/components/project/views/ProjectKanban.vue @@ -511,7 +511,7 @@ async function updateTaskPosition(e) { : e.newIndex const task = newBucket.tasks[newTaskIndex] - const oldBucket = buckets.value.find(b => b.id === task.bucketId) + const oldBucket = buckets.value.find(b => b.id === sourceBucket.value) const taskBefore = newBucket.tasks[newTaskIndex - 1] ?? null const taskAfter = newBucket.tasks[newTaskIndex + 1] ?? null taskUpdating.value[task.id] = true