Skip to content

Commit

Permalink
fix: additional_tags can be undefined (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-jones-vizio authored May 20, 2022
1 parent 1bd2927 commit c6cd5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ComponentParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export default class ComponentParser {

const additional_tags = comment[0]?.tags.filter(
(tag) => !["type", "extends", "restProps", "slot", "event", "typedef"].includes(tag.tag)
);
) ?? [];

if (additional_tags.length > 0 && description === undefined) {
description = "";
Expand Down

0 comments on commit c6cd5a2

Please sign in to comment.