Revert "TimeComparison: Ensure headerActions are activated" (#114370)
Revert "TimeComparison: Ensure headerActions are activated (#111224)"
This reverts commit 5556bcbc52.
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
||||
sceneGraph,
|
||||
sceneUtils,
|
||||
VizPanel,
|
||||
isSceneObject,
|
||||
} from '@grafana/scenes';
|
||||
import { Panel } from '@grafana/schema';
|
||||
import { OptionFilter } from 'app/features/dashboard/components/PanelEditor/OptionsPaneOptions';
|
||||
@@ -104,16 +103,6 @@ export class PanelEditor extends SceneObjectBase<PanelEditorState> {
|
||||
|
||||
const deactivateParents = activateSceneObjectAndParentTree(panel);
|
||||
|
||||
// Ensure headerActions are activated
|
||||
const headerActions = panel.state.headerActions;
|
||||
if (headerActions) {
|
||||
(Array.isArray(headerActions) ? headerActions : [headerActions]).forEach((action) => {
|
||||
if (isSceneObject(action)) {
|
||||
action.activate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.waitForPlugin();
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user