Skip to content

Commit

Permalink
fix(rule): bug when deleting input
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed Aug 5, 2024
1 parent 8fad423 commit c8adbde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/RuleEngine/components/RuleInputs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const showInputDrawer = ref(false)
*/
const currentEditIndex = ref(-1)
const currentEditInput: ComputedRef<undefined | string> = computed(() =>
currentEditIndex.value < 0 ? undefined : inputList.value[currentEditIndex.value].value,
currentEditIndex.value < 0 ? undefined : inputList.value[currentEditIndex.value]?.value,
)
const editInput = (index: number) => {
Expand Down

0 comments on commit c8adbde

Please sign in to comment.