Skip to content

Commit

Permalink
fix: Ensure params is an empty array if there are no params for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 5, 2020
1 parent 3f642f3 commit 5f35bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useComponentDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const useComponentDoc = (componentName) => {
name: `${componentName}.${member}`,
description: methodDocs?.text,
returnValue: methodDocs?.tags.return?.[0] ?? { type: 'undefined' },
params: methodDocs?.tags.param,
params: methodDocs?.tags.param ?? [],
};
}),
};
Expand Down

0 comments on commit 5f35bde

Please sign in to comment.