Skip to content

Commit

Permalink
fix: ...
Browse files Browse the repository at this point in the history
  • Loading branch information
grafakus committed Jan 31, 2025
1 parent d704325 commit 81e91eb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export class SceneMainServiceTimeseries extends SceneObjectBase<SceneMainService
return new SceneLabelValuesTimeseries({
item: timeseriesItem,
headerActions,
// we pass data to prevent rendering a timeseries without groupBy for a second then with groupBy
// we pass data to prevent rendering a timeseries without groupBy for a second then with groupBy (when group is in the URL)
data:
!item && supportGroupBy
!item && supportGroupBy && sceneGraph.findByKeyAndType(this, 'groupBy', GroupByVariable).state.value !== 'all'
? new SceneDataTransformer({
$data: new SceneQueryRunner({ datasource: PYROSCOPE_DATA_SOURCE, queries: [] }),
transformations: [addRefId, addStats],
Expand Down Expand Up @@ -176,7 +176,9 @@ export class SceneMainServiceTimeseries extends SceneObjectBase<SceneMainService
}

(this.state.body as SceneLabelValuesTimeseries)?.updateItem({
index: 0,
label: this.buildTitle(),
queryRunnerParams: { groupBy: undefined },
});
}

Expand Down

0 comments on commit 81e91eb

Please sign in to comment.