From eb71ab0f3a3fd12e0030f98a1ac3c37bbe04e564 Mon Sep 17 00:00:00 2001 From: Denys Nikanov <91739319+aednikanov@users.noreply.github.com> Date: Tue, 24 Sep 2024 16:23:41 +0300 Subject: [PATCH] fix(docs): fixed bug (#1573) --- 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];