Skip to content

Commit

Permalink
feat(docs): ACT-1539 - Handle Object Type for Input (#1569)
Browse files Browse the repository at this point in the history
* feat(docs): added handling for object input field

* feat(docs): added full handling for edge case
  • Loading branch information
aednikanov committed Sep 24, 2024
1 parent 1ac3da7 commit 2ab87a9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/ParserOpenRPC/InteractiveBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ export default function InteractiveBox({
return [checkName(name), getObjectWithAddress(value)];
}
}
if (isObject(value)) {
return [
checkName(name),
Object.fromEntries(Object.entries(value).map(([key, val]) => [key, isObject(val) ? val.value : val]))
];
}
return [checkName(name), value];
})
);
Expand Down

0 comments on commit 2ab87a9

Please sign in to comment.