we were expecting an object when doing this check, so codify it
This commit is contained in:
parent
d3d519a399
commit
af5374fa04
|
@ -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'
|
||||
) {
|
||||
|
|
Loading…
Reference in New Issue