[MM-17219] Return an empty list instead of null when no teams (#11904)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2719c781ed
Коммит
1a9a2b1430
@@ -729,7 +729,7 @@ func updateTeamMemberSchemeRoles(c *Context, w http.ResponseWriter, r *http.Requ
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getAllTeams(c *Context, w http.ResponseWriter, r *http.Request) {
|
func getAllTeams(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||||
var teams []*model.Team
|
teams := []*model.Team{}
|
||||||
var err *model.AppError
|
var err *model.AppError
|
||||||
var teamsWithCount *model.TeamsWithCount
|
var teamsWithCount *model.TeamsWithCount
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user