mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SupportBundles: Fix list response when we don't have any bundles yet (#61619)
* SupportBundles: Return empty slice instead of nil when there are no support bundles
This commit is contained in:
parent
1ac89ea040
commit
05a683d462
@ -101,7 +101,7 @@ func (s *store) List() ([]supportbundles.Bundle, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var res []supportbundles.Bundle
|
||||
res := make([]supportbundles.Bundle, 0)
|
||||
for _, items := range data {
|
||||
for _, s := range items {
|
||||
var b supportbundles.Bundle
|
||||
|
Loading…
Reference in New Issue
Block a user