Skip to content

Commit

Permalink
fix: Unable to retrieve the complete list of server APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
itnpeople committed Nov 1, 2022
1 parent 3d3bbd3 commit f51fca4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/backend/router/apis/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ func GetContext(c *gin.Context) {

resourcesList, err := discoveryClient.ServerPreferredResources()
if err != nil {
g.SendMessage(http.StatusInternalServerError, err.Error(), err)
return
if _, resourcesList, err = discoveryClient.ServerGroupsAndResources(); err != nil {
g.SendMessage(http.StatusInternalServerError, err.Error(), err)
return
}
}

// make a "groups > group > resources > resource" data structure
Expand Down

0 comments on commit f51fca4

Please sign in to comment.