Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Aug 20, 2024
1 parent 3338d51 commit f55f30b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/core/src/fields/resolve-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function resolveValidateHooks <ListTypeInfo extends BaseListTypeInfo> ({
validateInput,
validateDelete
}: FieldHooks<ListTypeInfo>): Exclude<FieldHooks<ListTypeInfo>["validate"], Function> | undefined {
// if nothing, do nothing
if (!validate && !validateInput && !validateDelete) return
return {
create: merge(validateInput, typeof validate === 'function' ? validate : validate?.create),
Expand Down

0 comments on commit f55f30b

Please sign in to comment.