mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 06:19:41 +02:00
fix(endpoints): remove global map to avoid panic writes EE-3838 (#7404)
This commit is contained in:
parent
628f822025
commit
20a66fb10f
2 changed files with 3 additions and 5 deletions
|
@ -39,8 +39,8 @@ func (e EndpointsByGroup) Less(i, j int) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
groupA := endpointGroupNames[e.endpoints[i].GroupID]
|
||||
groupB := endpointGroupNames[e.endpoints[j].GroupID]
|
||||
groupA := e.endpointGroupNames[e.endpoints[i].GroupID]
|
||||
groupB := e.endpointGroupNames[e.endpoints[j].GroupID]
|
||||
|
||||
return sortorder.NaturalLess(strings.ToLower(groupA), strings.ToLower(groupB))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue