we were expecting an object when doing this check, so codify it

This commit is contained in:
burnettk 2023-01-28 21:41:31 -05:00
parent d3d519a399
commit af5374fa04
1 changed files with 1 additions and 0 deletions

View File

@ -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'
) {