Skip to content

Commit

Permalink
fix: server-validation-extension prePropulate() method should not err…
Browse files Browse the repository at this point in the history
…or on execution
  • Loading branch information
Eisie96 committed Mar 27, 2023
1 parent 17f7b66 commit 30a6178
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const serverValidationExtension: FormlyExtension = {

field.expressions = {
...field.expressions,
'validation.messages.serverError': 'formState.errors?.[field.key as string]',
'validation.messages.serverError': field.options.formState.errors?.[field.key as string],
};
},
};

0 comments on commit 30a6178

Please sign in to comment.