Dashboard: Get panels in collapsed rows (#25079)

(cherry picked from commit 7e5f525473)
This commit is contained in:
Peter Holmberg
2020-06-03 17:19:31 +02:00
committed by Marcus Andersson
parent d3c725e4ff
commit fa0855ad4b
@@ -154,6 +154,7 @@ export class DashboardPage extends PureComponent<Props, State> {
const { dashboard } = this.props;
const panelId = parseInt(urlPanelId!, 10);
dashboard!.expandParentRowFor(panelId);
const panel = dashboard!.getPanelById(panelId);
if (!panel) {
@@ -170,7 +171,6 @@ export class DashboardPage extends PureComponent<Props, State> {
return;
}
dashboard!.expandParentRowFor(panelId);
callback(panel);
}