mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-16 13:15:00 +00:00
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…
x
Reference in New Issue
Block a user