Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit b37cb9b

Browse files
committed
Fixed bug
1 parent 4f51eca commit b37cb9b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-docgen-api",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Toolbox to extract information from Vue component files for documentation generation purposes.",
55
"bugs": {
66
"url": "https://github.com/vue-styleguidist/vue-docgen-api/issues"

src/utils/processProps.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export default function processProps(docFile, component) {
2626
return (comment.longname.indexOf('props.' + propName) > -1 &&
2727
listDocParts.indexOf(comment.longname) === -1)
2828
})[0];
29-
listDocParts.push(docPart.longname);
29+
if ( docPart ) {
30+
listDocParts.push(docPart.longname);
31+
}
3032
const prop = props[propName];
3133
const docProp = getProp(prop, docPart);
3234
if (docProp.tags.model) {

0 commit comments

Comments
 (0)