mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Playlists: Fix K8s list interface (#76993)
This commit is contained in:
parent
4df4844c1d
commit
b0eeeb9404
@ -38,7 +38,7 @@ class LegacyAPI implements PlaylistAPI {
|
||||
}
|
||||
|
||||
interface K8sPlaylistList {
|
||||
playlists: K8sPlaylist[];
|
||||
items: K8sPlaylist[];
|
||||
}
|
||||
|
||||
interface K8sPlaylist {
|
||||
@ -67,7 +67,7 @@ class K8sAPI implements PlaylistAPI {
|
||||
|
||||
async getAllPlaylist(): Promise<Playlist[]> {
|
||||
const result = await getBackendSrv().get<K8sPlaylistList>(this.url);
|
||||
return result.playlists.map(k8sResourceAsPlaylist);
|
||||
return result.items.map(k8sResourceAsPlaylist);
|
||||
}
|
||||
|
||||
async getPlaylist(uid: string): Promise<Playlist> {
|
||||
|
Loading…
Reference in New Issue
Block a user