Skip to content

Commit

Permalink
Update ComponentDocs.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lgk-bsw committed Sep 12, 2023
1 parent ab5c3a8 commit ef0eec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/docs/components/ComponentDocs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class ComponentDocs extends Component<IComponentDocsProps, { ExampleCompo
</a>
</p>

<Markdown>{this.prepareForMarkdown(comp.description)}</Markdown>
<Markdown>{comp.description && this.prepareForMarkdown(comp.description)}</Markdown>

{comp.displayName == "Intro" && (
<p>
Expand Down Expand Up @@ -112,7 +112,8 @@ export class ComponentDocs extends Component<IComponentDocsProps, { ExampleCompo
<th>{j}</th>
<td>
<Markdown>
{this.prepareForMarkdown(comp.props[j].description)}
{comp.props[j].description &&
this.prepareForMarkdown(comp.props[j].description)}
</Markdown>

{comp.props[j].defaultValue ? (
Expand Down

0 comments on commit ef0eec4

Please sign in to comment.