Skip to content

Commit 949a95c

Browse files
authored
Merge pull request #160 from hasheddan/fix-add-props-array
Quick fix for null itemsSchema property
2 parents cb01d9f + 3d20e87 commit 949a95c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

template/doc.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@
100100
if (itemsSchema.Type !== 'object') {
101101
type = `[]${itemsSchema.Type}`;
102102
} else {
103-
console.log({ property, itemsSchema });
104103
schema = itemsSchema;
105-
props = itemsSchema.Properties;
104+
props = itemsSchema.Properties || {};
106105
type = `[]object`;
107106
}
108107
}

0 commit comments

Comments
 (0)