fix: correctly store fetched task positions

Resolves https://github.com/go-vikunja/vikunja/issues/1392#issuecomment-3516180532
This commit is contained in:
kolaente 2025-11-15 16:57:13 +01:00
parent 682096e5f6
commit 411cfbef92
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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