Lint fixes
parent
051baf8384
commit
784d6daeee
|
@ -35,8 +35,8 @@ export const useForm = (options = {}) => {
|
||||||
let results = {};
|
let results = {};
|
||||||
|
|
||||||
isArray(options[option]) ? options[option].forEach(async (field) => (results = await validate(field))) : (options[option] ?? defaultValue) && (results = await validate());
|
isArray(options[option]) ? options[option].forEach(async (field) => (results = await validate(field))) : (options[option] ?? defaultValue) && (results = await validate());
|
||||||
|
|
||||||
const field = Object.keys(fields).find((field) => fields[field]?.options?.[option]);
|
const field = Object.keys(fields).find((field) => fields[field]?.options?.[option]);
|
||||||
|
|
||||||
field && (results = await validate(field));
|
field && (results = await validate(field));
|
||||||
|
|
||||||
return results;
|
return results;
|
||||||
|
|
Loading…
Reference in New Issue