Skip to content

Commit

Permalink
fix(ui): boolean valueId may fail to set value
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed May 19, 2023
1 parent b06c3ff commit c6a36e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ValueId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c6a36e3

Please sign in to comment.