Skip to content

Commit

Permalink
fix(FormGroup): err when no prop defined
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 30, 2023
1 parent 2b3dc8d commit 93aebe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/forms/FormGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default defineComponent({
const vProps: any = {}

if (props.error) {
vProps.oldColor = node.props.color
vProps.oldColor = node.props?.color
vProps.color = 'red'
} else if (vProps.oldColor) {
vProps.color = vProps.oldColor
Expand Down

0 comments on commit 93aebe6

Please sign in to comment.