fix(kanban): do not set bucket when it is null

This commit is contained in:
kolaente 2025-03-19 16:32:18 +01:00
parent 4887f7fe60
commit 1f0f698cab
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

@ -533,7 +533,9 @@ async function updateTaskPosition(e) {
if (updatedTaskBucket.bucketId !== newTask.bucketId) {
kanbanStore.moveTaskToBucket(newTask, updatedTaskBucket.bucketId)
}
kanbanStore.setBucketById(updatedTaskBucket.bucket, false)
if (updatedTaskBucket.bucket) {
kanbanStore.setBucketById(updatedTaskBucket.bucket, false)
}
}
kanbanStore.setTaskInBucket(newTask)