diff --git a/components/vc-form/src/createBaseForm.jsx b/components/vc-form/src/createBaseForm.jsx index f77ddab97..226b5b61d 100644 --- a/components/vc-form/src/createBaseForm.jsx +++ b/components/vc-form/src/createBaseForm.jsx @@ -592,9 +592,9 @@ function createBaseForm(option = {}, mixins = []) { callback, ); }); - pending.catch((e) => { - if (console.error) { // eslint-disable-line - console.error(e); // eslint-disable-line + pending.catch(e => { + if (console.error) { + console.error(e); } return e; });