From fbc5abb585193a429668c106958dfd201c3e0287 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 7 Jun 2023 21:00:20 +0300 Subject: [PATCH] Fix crash due to defaultValue being object (#329) Fixes #328 --- src/components/doc-explorer/Argument.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/doc-explorer/Argument.tsx b/src/components/doc-explorer/Argument.tsx index 5f313158..a2b8e736 100644 --- a/src/components/doc-explorer/Argument.tsx +++ b/src/components/doc-explorer/Argument.tsx @@ -21,7 +21,9 @@ export default function Argument(props: ArgumentProps) { {arg.defaultValue != null && ( {' = '} - {arg.defaultValue} + + {JSON.stringify(arg.defaultValue)} + )}