Browse Source

stackdriver: set first metric as selected if no metric could be retrieved from the target

Erik Sundell 7 years ago
parent
commit
a028df658a

+ 1 - 2
public/app/plugins/datasource/stackdriver/annotations_query_ctrl.ts

@@ -1,5 +1,4 @@
 import _ from 'lodash';
-
 import './query_filter_ctrl';
 
 export class StackdriverAnnotationsQueryCtrl {
@@ -16,7 +15,7 @@ export class StackdriverAnnotationsQueryCtrl {
       name: 'loading project...',
     },
     metricType: this.defaultDropdownValue,
-    metricService: this.defaultServiceValue,
+    service: this.defaultServiceValue,
     metric: '',
     filters: [],
     metricKind: '',