we were expecting an object when doing this check, so codify it
This commit is contained in:
parent
c453cbd937
commit
bd9ef740e6
|
@ -141,6 +141,7 @@ export default function TaskShow() {
|
||||||
Object.keys(jsonSchema.properties).forEach((propertyKey: string) => {
|
Object.keys(jsonSchema.properties).forEach((propertyKey: string) => {
|
||||||
const propertyMetadata = jsonSchema.properties[propertyKey];
|
const propertyMetadata = jsonSchema.properties[propertyKey];
|
||||||
if (
|
if (
|
||||||
|
typeof propertyMetadata === 'object' &&
|
||||||
'minimumDate' in propertyMetadata &&
|
'minimumDate' in propertyMetadata &&
|
||||||
propertyMetadata.minimumDate === 'today'
|
propertyMetadata.minimumDate === 'today'
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue