Dashboard: Get panels in collapsed rows (#25079)

This commit is contained in:
Peter Holmberg 2020-05-26 08:56:21 +02:00 committed by GitHub
parent 231a32c4a3
commit 7e5f525473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}