Skip to content

Commit 4c8b7ec

Browse files
author
Alexandre Stanislawski
committed
fix(documentationjs): fix 2+ depth structs
1 parent 47d7e8d commit 4c8b7ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docgen/plugins/documentationjs-data.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ function mapInstantSearch([instantsearchFactory, InstantSearch], symbols, files)
7474
// console.log(JSON.stringify(InstantSearchSymbol.params, null, 2));
7575
const fileName = 'instantsearch.html';
7676

77-
const symbolWithRelatedType =
7877
files[fileName] = {
7978
mode: '0764',
8079
contents: '',
@@ -178,7 +177,7 @@ function findRelatedTypes(functionSymbol, symbols) {
178177
else {
179178
types = [...types, typeSymbol];
180179
// iterate over each property to get their types
181-
forEach(typeSymbol.properties, p => findParamsTypes(p));
180+
forEach(typeSymbol.properties, p => findParamsTypes({name: p.type.name, type: p.type}));
182181
}
183182
}
184183
}

0 commit comments

Comments
 (0)