mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-27 01:40:48 +00:00
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) => {
|
||||
const propertyMetadata = jsonSchema.properties[propertyKey];
|
||||
if (
|
||||
typeof propertyMetadata === 'object' &&
|
||||
'minimumDate' in propertyMetadata &&
|
||||
propertyMetadata.minimumDate === 'today'
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user