mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dashboard: Save json should preserve folderId (#23314)
This commit is contained in:
parent
44604cfa4f
commit
7e3b43eabb
@ -79,7 +79,10 @@ export class DashboardSrv {
|
||||
};
|
||||
|
||||
saveJSONDashboard(json: string) {
|
||||
return getBackendSrv().saveDashboard(JSON.parse(json), {});
|
||||
const parsedJson = JSON.parse(json);
|
||||
return getBackendSrv().saveDashboard(parsedJson, {
|
||||
folderId: this.dashboard.meta.folderId || parsedJson.folderId,
|
||||
});
|
||||
}
|
||||
|
||||
starDashboard(dashboardId: string, isStarred: any) {
|
||||
|
Loading…
Reference in New Issue
Block a user