浏览代码

Dashboard: Fixes dashboard overwriting behavior (#18944)

Fixes #18941
kay delaney 6 年之前
父节点
当前提交
545be60138
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      public/app/features/dashboard/services/DashboardSrv.ts

+ 2 - 0
public/app/features/dashboard/services/DashboardSrv.ts

@@ -91,6 +91,8 @@ export class DashboardSrv {
     options: DashboardSaveOptions,
     err: { data: { status: string; message: any }; isHandled: boolean }
   ) {
+    options.overwrite = true;
+
     if (err.data && err.data.status === 'version-mismatch') {
       err.isHandled = true;