diff --git a/public/app/features/dashboard-scene/edit-pane/DashboardEditPane.tsx b/public/app/features/dashboard-scene/edit-pane/DashboardEditPane.tsx index 35f2ce7123b..e2e2b091420 100644 --- a/public/app/features/dashboard-scene/edit-pane/DashboardEditPane.tsx +++ b/public/app/features/dashboard-scene/edit-pane/DashboardEditPane.tsx @@ -109,6 +109,11 @@ export class DashboardEditPane extends SceneObjectBase { public clearSelection() { const dashboard = getDashboardSceneFor(this); + + if (this.state.selection?.getFirstObject() === dashboard) { + return; + } + this.setState({ selection: new ElementSelection([[dashboard.state.uid!, dashboard.getRef()]]), selectionContext: {