From c6a36e3b8743f2e03c5633ea2c5ea0a6e0ef8190 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Fri, 19 May 2023 16:36:10 +0200 Subject: [PATCH] fix(ui): boolean valueId may fail to set value --- src/components/ValueId.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ValueId.vue b/src/components/ValueId.vue index 315a238768..a0a8277958 100644 --- a/src/components/ValueId.vue +++ b/src/components/ValueId.vue @@ -494,7 +494,7 @@ export default { v.newValue = customValue } - if (v.type === 'boolean' && v.states.length === 1) { + if (v.type === 'boolean' && v.states?.length === 1) { customValue = v.states[0].value v.newValue = customValue }