PanelEdit: only update when config changes (#33133)

This commit is contained in:
Ryan McKinley
2021-04-19 10:24:39 -07:00
committed by GitHub
parent d807fbc9e9
commit f93b05f506
7 changed files with 47 additions and 40 deletions

View File

@@ -45,7 +45,7 @@ export const PanelLibraryOptionsGroup: FC<Props> = ({ panel, searchQuery }) => {
libraryPanel: toPanelModelLibraryPanel(changeToPanel),
});
panel.hasChanged = false;
panel.configRev = 0;
panel.refresh();
panel.events.publish(new PanelQueriesChangedEvent());
panel.events.publish(new PanelOptionsChangedEvent());