1
0

fix(tasks): remove a task from its bucket when it is in the first kanban bucket

Resolves https://github.com/go-vikunja/frontend/issues/89
This commit is contained in:
kolaente
2022-11-12 12:13:00 +01:00
parent 293402b6fd
commit 995cc12880
2 changed files with 35 additions and 2 deletions

View File

@ -200,9 +200,9 @@ export const useKanbanStore = defineStore('kanban', () => {
const { bucketIndex, taskIndex } = getTaskIndicesById(buckets.value, task.id)
if (
!bucketIndex ||
bucketIndex === null ||
buckets.value[bucketIndex]?.id !== task.bucketId ||
!taskIndex ||
taskIndex === null ||
(buckets.value[bucketIndex]?.tasks[taskIndex]?.id !== task.id)
) {
return