Skip to content

Commit a8b6ce1

Browse files
committedJul 2, 2020
fix: Additional safety around detecting functions in HTML output
1 parent 78c6a5a commit a8b6ce1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/default_theme/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function isFunction(section) {
1313
return (
1414
section.kind === 'function' ||
1515
(section.kind === 'typedef' &&
16+
section.type &&
1617
section.type.type === 'NameExpression' &&
1718
section.type.name === 'Function')
1819
);

0 commit comments

Comments
 (0)
Please sign in to comment.