diff --git a/frontend/src/stores/kanban.ts b/frontend/src/stores/kanban.ts index b54294290..565f26c5e 100644 --- a/frontend/src/stores/kanban.ts +++ b/frontend/src/stores/kanban.ts @@ -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.