mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Folders: Fix fetching empty folder (#78280)
This commit is contained in:
@@ -91,6 +91,10 @@ func (d *DashboardFolderStoreImpl) GetFolderByUID(ctx context.Context, orgID int
|
||||
|
||||
func (d *DashboardFolderStoreImpl) GetFolders(ctx context.Context, orgID int64, uids []string) (map[string]*folder.Folder, error) {
|
||||
m := make(map[string]*folder.Folder, len(uids))
|
||||
if len(uids) == 0 {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
var folders []*folder.Folder
|
||||
if err := d.store.WithDbSession(ctx, func(sess *db.Session) error {
|
||||
b := strings.Builder{}
|
||||
|
||||
Reference in New Issue
Block a user