From 30a6178c9ad0813a36786307cbbb1ecad2004d47 Mon Sep 17 00:00:00 2001 From: Marcel Eisentraut Date: Thu, 23 Mar 2023 13:13:46 +0100 Subject: [PATCH] fix: server-validation-extension prePropulate() method should not error on execution --- .../checkout-payment/formly/server-validation.extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/checkout-payment/formly/server-validation.extension.ts b/src/app/pages/checkout-payment/formly/server-validation.extension.ts index 63f671969d..7bc199e318 100644 --- a/src/app/pages/checkout-payment/formly/server-validation.extension.ts +++ b/src/app/pages/checkout-payment/formly/server-validation.extension.ts @@ -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], }; }, };