Skip to content

Commit 49d3aa4

Browse files
redreceiptdanez
authored andcommitted
Adds Check For Empty Props (#338)
1 parent d8e120d commit 49d3aa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/generateMarkdown.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ function generateProp(propName, prop) {
6262
}
6363

6464
function generateProps(props) {
65+
if (!props) return '\n';
6566
const title = 'Props';
6667

6768
return (

0 commit comments

Comments
 (0)