From 2a8c36c976e4930af03bb654843b33b48b94c44e Mon Sep 17 00:00:00 2001 From: kay delaney <45561153+kaydelaney@users.noreply.github.com> Date: Tue, 27 Apr 2021 15:14:21 +0100 Subject: [PATCH] Library Panels: Reset config rev after saving changes (#33422) --- public/app/features/library-panels/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/library-panels/utils.ts b/public/app/features/library-panels/utils.ts index 5202c8f72a0..a76d2cc6d62 100644 --- a/public/app/features/library-panels/utils.ts +++ b/public/app/features/library-panels/utils.ts @@ -40,7 +40,7 @@ function toPanelSaveModel(panel: PanelModel): any { function updatePanelModelWithUpdate(panel: PanelModel, updated: LibraryPanelDTO): void { panel.restoreModel({ ...updated.model, - hasChanged: false, // reset dirty flag, since changes have been saved + configRev: 0, // reset config rev, since changes have been saved libraryPanel: toPanelModelLibraryPanel(updated), }); panel.refresh();