From 5819b22cab80f433392501f7387c530a25f2791b Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 22 Feb 2023 08:50:55 -0500 Subject: [PATCH] added support to validate custom errors in nested properties in json schema forms --- spiffworkflow-frontend/src/routes/TaskShow.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 974f91d96..35ad48d43 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -168,6 +168,13 @@ export default function TaskShow() { } } } + + // recurse through all nested properties as well + getFieldsWithDateValidations( + propertyMetadata, + formData[propertyKey], + errors[propertyKey] + ); }); } return errors;