mirror of
https://github.com/grafana/grafana.git
synced 2026-08-13 06:34:55 -05:00
Dashboard: Save json should preserve folderId (#23314)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user