Library Panels: Reset config rev after saving changes (#33422)

This commit is contained in:
kay delaney 2021-04-27 15:14:21 +01:00 committed by GitHub
parent d5465e5c6a
commit 2a8c36c976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();