Skip to content

Commit

Permalink
fix validator property to always contains validator name instead of e…
Browse files Browse the repository at this point in the history
…rror message
  • Loading branch information
AlexeyNikipelau authored and lane-formio committed Apr 5, 2024
1 parent 6efa66b commit fcf3023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/validation/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const interpolateErrors = (errors: FieldError[], lang: string = 'en') =>
level: error.level,
path: paths,
context: {
validator: errorKeyOrMessage || context.processor,
validator: context.processor,
hasLabel: context.hasLabel,
key: context.component.key,
label: context.component.label || context.component.placeholder || context.component.key,
Expand Down

0 comments on commit fcf3023

Please sign in to comment.