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:
@ -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
|
||||
|
Reference in New Issue
Block a user