mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Git: Update experimental workflow POC (#60049)
This commit is contained in:
@@ -96,7 +96,8 @@ export function SaveToStorageForm(props: Props) {
|
||||
}
|
||||
setSaving(true);
|
||||
|
||||
let uid = saveModel.clone.uid;
|
||||
// Save dashboard without the UID
|
||||
let { uid, ...body } = saveModel.clone;
|
||||
if (isNew || isCopy) {
|
||||
uid = path;
|
||||
if (!uid.endsWith('-dash.json')) {
|
||||
@@ -104,7 +105,7 @@ export function SaveToStorageForm(props: Props) {
|
||||
}
|
||||
}
|
||||
const rsp = await getGrafanaStorage().write(uid, {
|
||||
body: saveModel.clone,
|
||||
body,
|
||||
kind: 'dashboard',
|
||||
title: data.title,
|
||||
message: data.message,
|
||||
|
||||
Reference in New Issue
Block a user