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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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