Skip to content

Commit

Permalink
fix: fix self override flow
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Jul 12, 2023
1 parent 16ac353 commit 6ed86c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/v2/logic/createForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,7 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
if (schema.variant === "FIELD" || schema.variant === "FIELD-ARRAY" || schema.variant === "FIELD-OBJECT") {
if (options.name === key) {
executeEachOverrideExpression(schema, options);
}
if (schema.overrideSelf) {
} else if (schema.overrideSelf) {
executeEachOverrideSelfExpression(schema, options);
}
}
Expand Down

0 comments on commit 6ed86c9

Please sign in to comment.