@@ -121,15 +89,12 @@ limitations under the License. -->
+
diff --git a/src/views/dashboard/controls/Widget.vue b/src/views/dashboard/controls/Widget.vue
index f757782c..3ed1a26b 100644
--- a/src/views/dashboard/controls/Widget.vue
+++ b/src/views/dashboard/controls/Widget.vue
@@ -121,7 +121,7 @@ export default defineComponent({
}
}
watch(
- () => [props.data.queryMetricType, props.data.metrics],
+ () => [props.data.metricTypes, props.data.metrics],
(data, old) => {
if (data[0] === old[0] && data[1] === old[1]) {
return;
diff --git a/src/views/dashboard/data.ts b/src/views/dashboard/data.ts
index 40053266..c6e4612d 100644
--- a/src/views/dashboard/data.ts
+++ b/src/views/dashboard/data.ts
@@ -92,7 +92,7 @@ export enum MetricsType {
HEATMAP = "HEATMAP",
SAMPLED_RECORD = "SAMPLED_RECORD",
}
-export const ValuesTypes: {
+export const MetricTypes: {
[key: string]: Array<{ label: string; value: string }>;
} = {
REGULAR_VALUE: [
diff --git a/src/views/dashboard/graphs/EndpointList.vue b/src/views/dashboard/graphs/EndpointList.vue
index 2ed83c5f..9bd742f7 100644
--- a/src/views/dashboard/graphs/EndpointList.vue
+++ b/src/views/dashboard/graphs/EndpointList.vue
@@ -17,7 +17,7 @@ limitations under the License. -->