diff --git a/src/templates/Typedoc/Entities.jsx b/src/templates/Typedoc/Entities.jsx index 17e9fead..7d54e529 100644 --- a/src/templates/Typedoc/Entities.jsx +++ b/src/templates/Typedoc/Entities.jsx @@ -101,7 +101,9 @@ MethodDetails.propTypes = { } const getSourceLink = (sources, sourceUrl) => { - return sources && sources[0] ? `${sourceUrl}src/${sources[0].fileName}#L${sources[0].line}` : '' + return sources && sources[0] + ? `${sourceUrl}src/${sources[0].fileName}#L${sources[0].line}` + : '' } const PropertyWrapper = ({ property, sourceUrl, parentAnchor }) => {