mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Library Panels: Reset config rev after saving changes (#33422)
This commit is contained in:
parent
d5465e5c6a
commit
2a8c36c976
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user