fix: correctly store fetched task positions
Resolves https://github.com/go-vikunja/vikunja/issues/1392#issuecomment-3516180532
This commit is contained in:
parent
682096e5f6
commit
411cfbef92
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue