fix(core): custom widget validate bug in EditorControlPane (#3435)

This commit is contained in:
marcricharme
2020-03-19 10:38:26 +01:00
committed by GitHub
parent ab7ba435ba
commit e81a35ccb8

View File

@ -19,7 +19,7 @@ export default class ControlPane extends React.Component {
const name = field.get('name');
this.componentValidate[name] =
wrappedControl.innerWrappedControl.validate || wrappedControl.validate;
wrappedControl.innerWrappedControl?.validate || wrappedControl.validate;
}
validate = () => {