[v10.2.x] Folders: Fix fetching empty folder (#78306)
Folders: Fix fetching empty folder (#78280)
(cherry picked from commit 5e50d9b178)
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
This commit is contained in:
co-authored by
Alexander Zobnin
parent
bd8c0118ef
commit
574904291c
@@ -88,6 +88,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