Skip to content

Commit

Permalink
Merge pull request josdejong#463 from hachichaud/fix/findschema-with-…
Browse files Browse the repository at this point in the history
…nested-composite

Fix FindSchema for nested composites
  • Loading branch information
josdejong authored Sep 13, 2017
2 parents 8bc9e8d + b0266d9 commit 6a0ac95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -2056,13 +2056,13 @@ Node._findSchema = function (schema, path) {
if (typeof key === 'string' && childSchema.properties) {
childSchema = childSchema.properties[key] || null;
if (childSchema) {
foundSchema = childSchema;
foundSchema = Node._findSchema(childSchema, path.slice(i, path.length));
}
}
else if (typeof key === 'number' && childSchema.items) {
childSchema = childSchema.items;
if (childSchema) {
foundSchema = childSchema;
foundSchema = Node._findSchema(childSchema, path.slice(i, path.length));
}
}
}
Expand Down

0 comments on commit 6a0ac95

Please sign in to comment.