DynamicDashboards: Fixes issue with data links not working (#100974)
* DynamicDashboards: Fixes issue with data links not working * Update * Update public/app/features/dashboard-scene/edit-pane/DashboardEditPaneSplitter.tsx Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com> * simplify fix --------- Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
This commit is contained in:
co-authored by
kay delaney
parent
3992ac2ac1
commit
5a0dbf3b4d
@@ -109,6 +109,11 @@ export class DashboardEditPane extends SceneObjectBase<DashboardEditPaneState> {
|
||||
|
||||
public clearSelection() {
|
||||
const dashboard = getDashboardSceneFor(this);
|
||||
|
||||
if (this.state.selection?.getFirstObject() === dashboard) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.setState({
|
||||
selection: new ElementSelection([[dashboard.state.uid!, dashboard.getRef()]]),
|
||||
selectionContext: {
|
||||
|
||||
Reference in New Issue
Block a user