Skip to content

Commit

Permalink
Merge branch 'master' of github.com:formio/core into refactor-compone…
Browse files Browse the repository at this point in the history
…nt-paths
  • Loading branch information
travist committed Nov 25, 2024
2 parents 96f9aa9 + 30ac705 commit dc60547
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/process/validation/rules/validateCustom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,17 @@ export const validateCustomSync: RuleFnSync = (context: ValidationContext) => {
return null;
}

const ctx = instance?.evalContext
? instance.evalContext()
: evalContext
? evalContext(normalizeContext(context))
: normalizeContext(context);
const evalContextValue = {
...(instance?.evalContext
? instance.evalContext()
: evalContext
? evalContext(normalizeContext(context))
: normalizeContext(context)),
...ctx,
component,
data,
row,
rowIndex: index,
rowIndex: typeof index === 'number' ? index : ctx.rowIndex,
instance,
valid: true,
input: value,
Expand Down

0 comments on commit dc60547

Please sign in to comment.