mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
use ds template srv reference
This commit is contained in:
@@ -37,7 +37,7 @@ export class Aggregations extends React.Component<Props, State> {
|
||||
|
||||
setAggOptions({ metricDescriptor }: Props) {
|
||||
let aggOptions = [];
|
||||
if (metricDescriptor !== null) {
|
||||
if (metricDescriptor) {
|
||||
aggOptions = getAggregationOptionsByMetric(metricDescriptor.valueType, metricDescriptor.metricKind).map(a => ({
|
||||
...a,
|
||||
label: a.text,
|
||||
|
||||
Reference in New Issue
Block a user