From ed741cea4316042f02b967ba60337bed2946d3bd Mon Sep 17 00:00:00 2001 From: aednikanov Date: Tue, 24 Sep 2024 16:15:33 +0300 Subject: [PATCH] fix(docs): fixed bug --- src/components/ParserOpenRPC/InteractiveBox/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ParserOpenRPC/InteractiveBox/index.tsx b/src/components/ParserOpenRPC/InteractiveBox/index.tsx index 0bf092575e..58e8499813 100644 --- a/src/components/ParserOpenRPC/InteractiveBox/index.tsx +++ b/src/components/ParserOpenRPC/InteractiveBox/index.tsx @@ -131,7 +131,7 @@ export default function InteractiveBox({ if (isObject(value)) { return [ checkName(name), - Object.fromEntries(Object.entries(value).map(([key, val]) => [key, isObject(val) ? val.value : val])) + Object.fromEntries(Object.entries(value).map(([key, val]) => [key, isObject(val) && val?.description ? val.value : val])) ]; } return [checkName(name), value];