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

Commit b1ec37a

Browse files
committed
Merge branch 'mitchreece-master'
2 parents bd73c33 + 6ea80fe commit b1ec37a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getProp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function getProp(prop, docPart){
3434
name: getTypeName(prop.type),
3535
};
3636
obj['required'] = prop.required || EMPTY;
37-
if (prop.default) {
37+
if (prop.default !== UNDEFINED) {
3838
let value;
3939
if (typeof prop.default === 'function') {
4040
obj['type'] = { name: 'func' }

0 commit comments

Comments
 (0)