Git: Update experimental workflow POC (#60049)

This commit is contained in:
Ryan McKinley
2022-12-08 10:57:33 -08:00
committed by GitHub
parent 29d2f86955
commit b2c4af16d7
6 changed files with 12 additions and 10 deletions

View File

@@ -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,