mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataTrails: Do not create a new VizPanel every activation (#85693)
This commit is contained in:
@@ -72,8 +72,6 @@ function getStyles(theme: GrafanaTheme2) {
|
||||
}
|
||||
|
||||
function buildGraphTopView() {
|
||||
const bodyAutoVizPanel = new AutoVizPanel({});
|
||||
|
||||
return new SceneFlexLayout({
|
||||
direction: 'column',
|
||||
$behaviors: [new behaviors.CursorSync({ key: 'metricCrosshairSync', sync: DashboardCursorSync.Crosshair })],
|
||||
@@ -81,7 +79,7 @@ function buildGraphTopView() {
|
||||
new SceneFlexItem({
|
||||
minHeight: MAIN_PANEL_MIN_HEIGHT,
|
||||
maxHeight: MAIN_PANEL_MAX_HEIGHT,
|
||||
body: bodyAutoVizPanel,
|
||||
body: new AutoVizPanel({}),
|
||||
}),
|
||||
new SceneFlexItem({
|
||||
ySizing: 'content',
|
||||
|
||||
Reference in New Issue
Block a user