Skip to content

Commit

Permalink
fix: fix reference of fieldref
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed Aug 21, 2023
1 parent d9e9d03 commit 672e444
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/v2/logic/createForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
supports: [],
};

const _fieldRef: Record<string, any> = {};

const parse = (expression: IExpressionString, terms: Record<string, any> = {}, version: string = "v1") => {
if (version === "v2") return parserV2.evaluate(expression, { ..._config.extraData, ..._state.values, ...terms });
return parser.expressionToValue(expression, { ..._config.extraData, ..._state.values, ...terms });
Expand Down Expand Up @@ -714,7 +712,7 @@ const createForm = <TSchema>(props: ICreateFormProps<TSchema>) => {
config: _config,
state: _state,
subject: _subject,
fieldRef: _fieldRef,
fieldRef: _state.fieldsRef,
event: _event,
parse,
setContainerFormState,
Expand Down

0 comments on commit 672e444

Please sign in to comment.