From f434ddef8a74703350d0f306405e4434cac8cefb Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 24 Oct 2024 15:37:03 +0800 Subject: [PATCH] refactor --- src/views/dashboard/panel/Layout.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/dashboard/panel/Layout.vue b/src/views/dashboard/panel/Layout.vue index b6380910..bfebc00c 100644 --- a/src/views/dashboard/panel/Layout.vue +++ b/src/views/dashboard/panel/Layout.vue @@ -80,8 +80,7 @@ limitations under the License. --> const widgets = []; for (const item of dashboardStore.layout) { if (item.type === WidgetType.Widget) { - const isList = ListChartTypes.includes(item.graph?.type || ""); - if (!isList) { + if (!ListChartTypes.includes(item.graph?.type || "")) { widgets.push(item); } }