Skip to content

Commit

Permalink
fix: fix expression self logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Aug 9, 2023
1 parent a05c178 commit 1072cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v2/logic/createForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,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);
} else if (schema.overrideSelf && !_state.hasChangedByOverride[options.name!]) {
} else if (schema.overrideSelf && !_state.hasChangedByOverride[schema.config?.name!]) {
executeEachOverrideSelfExpression(schema, options);
}
}
Expand Down

0 comments on commit 1072cc6

Please sign in to comment.