1
0

feat(views): create task bucket relation when creating a new bucket

This commit is contained in:
kolaente
2024-03-16 14:19:36 +01:00
parent 7f1788eba9
commit 61e27ae3eb
3 changed files with 58 additions and 14 deletions

View File

@ -110,6 +110,10 @@ func RecalculateTaskPositions(s *xorm.Session, view *ProjectView) (err error) {
return
}
if len(allTasks) == 0 {
return
}
maxPosition := math.Pow(2, 32)
newPositions := make([]*TaskPosition, 0, len(allTasks))