From bd9ef740e641b32b3ada54faf1b6aa6f15b0aada Mon Sep 17 00:00:00 2001 From: burnettk Date: Sat, 28 Jan 2023 21:41:31 -0500 Subject: [PATCH] we were expecting an object when doing this check, so codify it --- spiffworkflow-frontend/src/routes/TaskShow.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 9c93ddb9..f08bf904 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -141,6 +141,7 @@ export default function TaskShow() { Object.keys(jsonSchema.properties).forEach((propertyKey: string) => { const propertyMetadata = jsonSchema.properties[propertyKey]; if ( + typeof propertyMetadata === 'object' && 'minimumDate' in propertyMetadata && propertyMetadata.minimumDate === 'today' ) {