fix bug when update owner team then visit team's repo return 404 (#6119)
This commit is contained in:
parent
df30010dbd
commit
134e55510e
3 changed files with 20 additions and 2 deletions
|
@ -288,8 +288,6 @@ func EditTeamPost(ctx *context.Context, form auth.CreateTeamForm) {
|
|||
})
|
||||
}
|
||||
models.UpdateTeamUnits(t, units)
|
||||
} else {
|
||||
models.UpdateTeamUnits(t, nil)
|
||||
}
|
||||
|
||||
if ctx.HasError() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue