From c8adbdeb1c7e39d33bf7abb72a38c2acc059e642 Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Fri, 2 Aug 2024 18:12:57 +0800 Subject: [PATCH] fix(rule): bug when deleting input --- src/views/RuleEngine/components/RuleInputs.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/RuleEngine/components/RuleInputs.vue b/src/views/RuleEngine/components/RuleInputs.vue index 4ade1d59d..3bcd31711 100644 --- a/src/views/RuleEngine/components/RuleInputs.vue +++ b/src/views/RuleEngine/components/RuleInputs.vue @@ -158,7 +158,7 @@ const showInputDrawer = ref(false) */ const currentEditIndex = ref(-1) const currentEditInput: ComputedRef = computed(() => - currentEditIndex.value < 0 ? undefined : inputList.value[currentEditIndex.value].value, + currentEditIndex.value < 0 ? undefined : inputList.value[currentEditIndex.value]?.value, ) const editInput = (index: number) => {