mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
PanelInspectDrawer: Fix issue where closing inspect drawer on home dashboard redirects to new dashboard (#96711)
This commit is contained in:
@@ -92,6 +92,8 @@ export class PanelInspectDrawer extends SceneObjectBase<PanelInspectDrawerState>
|
||||
|
||||
onClose = () => {
|
||||
const dashboard = getDashboardSceneFor(this);
|
||||
const meta = dashboard.state.meta;
|
||||
|
||||
locationService.push(
|
||||
getDashboardUrl({
|
||||
uid: dashboard.state.uid,
|
||||
@@ -101,6 +103,7 @@ export class PanelInspectDrawer extends SceneObjectBase<PanelInspectDrawerState>
|
||||
inspect: null,
|
||||
inspectTab: null,
|
||||
},
|
||||
isHomeDashboard: !meta.url && !meta.slug && !meta.isNew,
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user