fix(kanban): do not use the bucket id saved on the task
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
8f85af07ca
commit
2dcf6c6861
@ -348,7 +348,6 @@ const router = createRouter({
|
||||
name: 'project.index',
|
||||
redirect(to) {
|
||||
const viewId = getProjectViewId(Number(to.params.projectId as string))
|
||||
console.log(viewId)
|
||||
|
||||
if (viewId) {
|
||||
console.debug('Replaced list view with', viewId)
|
||||
|
@ -131,11 +131,6 @@ export const useKanbanStore = defineStore('kanban', () => {
|
||||
const bucket = buckets.value[b]
|
||||
bucket.tasks[t] = task
|
||||
|
||||
if (bucket.id !== task.bucketId) {
|
||||
bucket.tasks.splice(t, 1)
|
||||
addTaskToBucketAndSort(buckets.value, task)
|
||||
}
|
||||
|
||||
buckets.value[b] = bucket
|
||||
|
||||
found = true
|
||||
@ -144,15 +139,6 @@ export const useKanbanStore = defineStore('kanban', () => {
|
||||
}
|
||||
}
|
||||
|
||||
for (const b in buckets.value) {
|
||||
if (buckets.value[b].id === task.bucketId) {
|
||||
findAndUpdate(b)
|
||||
if (found) {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (const b in buckets.value) {
|
||||
findAndUpdate(b)
|
||||
if (found) {
|
||||
@ -198,7 +184,6 @@ export const useKanbanStore = defineStore('kanban', () => {
|
||||
|
||||
if (
|
||||
bucketIndex === null ||
|
||||
buckets.value[bucketIndex]?.id !== task.bucketId ||
|
||||
taskIndex === null ||
|
||||
(buckets.value[bucketIndex]?.tasks[taskIndex]?.id !== task.id)
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user