fix bug when update owner team then visit team's repo return 404 (#6119)

This commit is contained in:
Lunny Xiao 2019-02-23 00:14:45 +08:00 committed by techknowlogick
parent df30010dbd
commit 134e55510e
3 changed files with 20 additions and 2 deletions

View file

@ -288,8 +288,6 @@ func EditTeamPost(ctx *context.Context, form auth.CreateTeamForm) {
})
}
models.UpdateTeamUnits(t, units)
} else {
models.UpdateTeamUnits(t, nil)
}
if ctx.HasError() {