Skip to content

Commit

Permalink
Merge pull request #130 from newrelic/liz/fix-type-def-names
Browse files Browse the repository at this point in the history
Change typeDef return value key name
  • Loading branch information
jerelmiller authored Jun 11, 2020
2 parents f4e3103 + f07f86b commit 2020748
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hooks/useComponentDoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ const getTypeDefs = (component) => {

const structuredTypeDefs = typeDefs.map((typeDef) => ({
properties: typeDef.tags.property,
identifier: typeDef.tags.typedef.find((tag) => tag.identifier).identifier
.name,
name: typeDef.tags.typedef.find((tag) => tag.identifier).identifier.name,
}));

return structuredTypeDefs;
Expand Down

0 comments on commit 2020748

Please sign in to comment.