Skip to content

Commit

Permalink
fix(documentationjs): fix 2+ depth structs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Stanislawski committed May 3, 2017
1 parent 47d7e8d commit 4c8b7ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docgen/plugins/documentationjs-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function mapInstantSearch([instantsearchFactory, InstantSearch], symbols, files)
// console.log(JSON.stringify(InstantSearchSymbol.params, null, 2));
const fileName = 'instantsearch.html';

const symbolWithRelatedType =
files[fileName] = {
mode: '0764',
contents: '',
Expand Down Expand Up @@ -178,7 +177,7 @@ function findRelatedTypes(functionSymbol, symbols) {
else {
types = [...types, typeSymbol];
// iterate over each property to get their types
forEach(typeSymbol.properties, p => findParamsTypes(p));
forEach(typeSymbol.properties, p => findParamsTypes({name: p.type.name, type: p.type}));
}
}
}
Expand Down

0 comments on commit 4c8b7ec

Please sign in to comment.