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 = () => {
|
onClose = () => {
|
||||||
const dashboard = getDashboardSceneFor(this);
|
const dashboard = getDashboardSceneFor(this);
|
||||||
|
const meta = dashboard.state.meta;
|
||||||
|
|
||||||
locationService.push(
|
locationService.push(
|
||||||
getDashboardUrl({
|
getDashboardUrl({
|
||||||
uid: dashboard.state.uid,
|
uid: dashboard.state.uid,
|
||||||
@@ -101,6 +103,7 @@ export class PanelInspectDrawer extends SceneObjectBase<PanelInspectDrawerState>
|
|||||||
inspect: null,
|
inspect: null,
|
||||||
inspectTab: null,
|
inspectTab: null,
|
||||||
},
|
},
|
||||||
|
isHomeDashboard: !meta.url && !meta.slug && !meta.isNew,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user