diff --git a/src/views/dashboard/controls/Widget.vue b/src/views/dashboard/controls/Widget.vue index f096ccdf..3d61e751 100644 --- a/src/views/dashboard/controls/Widget.vue +++ b/src/views/dashboard/controls/Widget.vue @@ -109,7 +109,6 @@ limitations under the License. --> const { data } = toRefs(props); const appStore = useAppStoreWithOut(); const dashboardStore = useDashboardStore(); - const selectorStore = useSelectorStore(); const graph = computed(() => props.data.graph || {}); const widget = computed(() => props.data.widget || {}); const isList = computed(() => ListChartTypes.includes((props.data.graph && props.data.graph.type) || "")); @@ -178,13 +177,11 @@ limitations under the License. --> watch( () => props.metricsValues, () => { - loading.value = true; const params = props.metricsValues[data.value.i]; if (params) { state.source = params.source || {}; typesOfMQE.value = params.typesOfMQE; } - loading.value = false; }, ); diff --git a/src/views/dashboard/panel/Layout.vue b/src/views/dashboard/panel/Layout.vue index 6265cb3e..0a78c6ae 100644 --- a/src/views/dashboard/panel/Layout.vue +++ b/src/views/dashboard/panel/Layout.vue @@ -85,7 +85,7 @@ limitations under the License. --> widgets.push(...item.children[index].children); } } - const configList = widgets.map((d: any) => ({ + const configList = widgets.map((d: LayoutConfig) => ({ metrics: d.expressions || [], metricConfig: d.metricConfig || [], id: d.i,