mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 14:08:06 +01:00
fix(FormGroup): err when no prop defined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user