fix(kanban): do not use the bucket id saved on the task

This commit is contained in:
kolaente 2024-03-20 11:36:46 +01:00
parent 8f85af07ca
commit 2dcf6c6861
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 0 additions and 16 deletions

View File

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

View File

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