Lint fixes

pull/6697/head
tugcekucukoglu 2024-10-31 17:05:31 +03:00
parent 051baf8384
commit 784d6daeee
1 changed files with 1 additions and 1 deletions

View File

@ -35,8 +35,8 @@ export const useForm = (options = {}) => {
let results = {};
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]);
field && (results = await validate(field));
return results;