fix(kanban): remove unused function

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

View File

@ -30,15 +30,6 @@ function getTaskIndicesById(buckets: IBucket[], taskId: ITask['id']) {
}
}
const addTaskToBucketAndSort = (buckets: IBucket[], task: ITask) => {
const bucketIndex = findIndexById(buckets, task.bucketId)
if (typeof buckets[bucketIndex] === 'undefined') {
return
}
buckets[bucketIndex].tasks.push(task)
buckets[bucketIndex].tasks.sort((a, b) => a.kanbanPosition > b.kanbanPosition ? 1 : -1)
}
/**
* This store is intended to hold the currently active kanban view.
* It should hold only the current buckets.