From edaf017ab1bb51a98a297bd3bdd4e130aefd99c5 Mon Sep 17 00:00:00 2001 From: Fine Date: Fri, 18 Oct 2024 13:24:06 +0800 Subject: [PATCH] fix --- .../widget/graph-styles/components/ValueMappings.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/views/dashboard/configuration/widget/graph-styles/components/ValueMappings.vue b/src/views/dashboard/configuration/widget/graph-styles/components/ValueMappings.vue index 9c45ddd7..99d2ae90 100644 --- a/src/views/dashboard/configuration/widget/graph-styles/components/ValueMappings.vue +++ b/src/views/dashboard/configuration/widget/graph-styles/components/ValueMappings.vue @@ -56,6 +56,9 @@ limitations under the License. --> } delete valueMappings.value[list[index]]; keys.value = Object.keys(valueMappings.value); + if (!keys.value.length) { + keys.value = [""]; + } updateConfig(); }