diff --git a/src/store/modules/dashboard.ts b/src/store/modules/dashboard.ts index 6d7384ea..666577c6 100644 --- a/src/store/modules/dashboard.ts +++ b/src/store/modules/dashboard.ts @@ -88,8 +88,6 @@ export const dashboardStore = defineStore({ i: index, id: index, type, - metricTypes: [""], - metrics: [""], }; if (type === WidgetType.Tab) { newItem.h = 36; @@ -163,8 +161,6 @@ export const dashboardStore = defineStore({ i: index, id, type, - metricTypes: [""], - metrics: [""], }; if (type === WidgetType.Topology) { newItem.h = 32; diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue index 70e790f2..d3c8355d 100644 --- a/src/views/dashboard/configuration/Widget.vue +++ b/src/views/dashboard/configuration/Widget.vue @@ -138,13 +138,8 @@ limitations under the License. --> function applyConfig() { dashboardStore.setConfigPanel(false); - let p = { - metrics: [], - metricTypes: [], - }; dashboardStore.selectWidget({ ...dashboardStore.selectedGrid, - ...p, }); dashboardStore.setConfigs(dashboardStore.selectedGrid); } diff --git a/src/views/dashboard/graphs/Table.vue b/src/views/dashboard/graphs/Table.vue index 80417b44..baaf2190 100644 --- a/src/views/dashboard/graphs/Table.vue +++ b/src/views/dashboard/graphs/Table.vue @@ -56,7 +56,6 @@ limitations under the License. --> type: Object as PropType<{ showTableValues: boolean; tableHeaderCol2: string; - metricTypes: string[]; typesOfMQE: string[]; }>, default: () => ({ showTableValues: true }),