Skip to content

Commit

Permalink
Fix crash due to defaultValue being object (#329)
Browse files Browse the repository at this point in the history
Fixes #328
  • Loading branch information
IvanGoncharov authored Jun 7, 2023
1 parent 4414832 commit fbc5abb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/doc-explorer/Argument.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default function Argument(props: ArgumentProps) {
{arg.defaultValue != null && (
<span>
{' = '}
<span className="default-value">{arg.defaultValue}</span>
<span className="default-value">
{JSON.stringify(arg.defaultValue)}
</span>
</span>
)}
</span>
Expand Down

0 comments on commit fbc5abb

Please sign in to comment.