Skip to content

Commit

Permalink
fix: Change typeDef return value key name
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBaker committed Jun 11, 2020
1 parent f4e3103 commit f07f86b
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 f07f86b

Please sign in to comment.