chore: prefer arrow function shorthand
This commit is contained in:
+1
-3
@@ -156,9 +156,7 @@ export default createComponent({
|
||||
const values = getValues();
|
||||
|
||||
validate()
|
||||
.then(() => {
|
||||
emit('submit', values);
|
||||
})
|
||||
.then(() => emit('submit', values))
|
||||
.catch((errors: FieldValidateError[]) => {
|
||||
emit('failed', { values, errors });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user