K8s: Dashboards: Fix search parsing (#98560)
This commit is contained in:
@@ -310,7 +310,13 @@ func (s *SearchHandler) DoSearch(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
s.write(w, dashboardsvc.ParseResults(result, searchRequest.Offset))
|
||||
parsedResults, err := dashboardsvc.ParseResults(result, searchRequest.Offset)
|
||||
if err != nil {
|
||||
errhttp.Write(ctx, err, w)
|
||||
return
|
||||
}
|
||||
|
||||
s.write(w, parsedResults)
|
||||
}
|
||||
|
||||
func (s *SearchHandler) write(w http.ResponseWriter, obj any) {
|
||||
|
||||
Reference in New Issue
Block a user