Skip to content

Commit

Permalink
fix: update execute props expression
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Jun 21, 2023
1 parent 5c18462 commit 13860ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/logic/createForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {

const executeEachPropsExpression = (
schema: ISchema,
options: IExecuteEachOptions = { parent: "", extraData: {}, name: "" },
options: Partial<IExecuteEachOptions> = { parent: "", extraData: {} },
) => {
if (!schema.props) return;

Expand Down Expand Up @@ -509,7 +509,7 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
}
}

executeEachPropsExpression(schema);
executeEachPropsExpression(schema, options);

// skip when hidden is false
if (getProp("hidden", key) || getProp("disabled", key)) continue;
Expand Down

0 comments on commit 13860ac

Please sign in to comment.