mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Remove valid aggregation type check (#43955)
This commit is contained in:
parent
f881fd1637
commit
105bf8fd94
@ -257,9 +257,7 @@ export const useMetricMetadata = (query: AzureMonitorQuery, datasource: Datasour
|
||||
|
||||
// Update the query state in response to the meta data changing
|
||||
useEffect(() => {
|
||||
const aggregationIsValid = aggregation && metricMetadata.supportedAggTypes.includes(aggregation);
|
||||
|
||||
const newAggregation = aggregationIsValid ? aggregation : metricMetadata.primaryAggType;
|
||||
const newAggregation = aggregation || metricMetadata.primaryAggType;
|
||||
const newTimeGrain = timeGrain || 'auto';
|
||||
|
||||
if (newAggregation !== aggregation || newTimeGrain !== timeGrain) {
|
||||
|
Loading…
Reference in New Issue
Block a user