From b42e2a7045543429fcaddc782d6103dfbabd2080 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 23 Nov 2017 11:58:46 -0600 Subject: [PATCH] Render non-primitive extension values more reliably --- src/core/components/operation-extension-row.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/components/operation-extension-row.jsx b/src/core/components/operation-extension-row.jsx index 7c3a90dc..4d857823 100644 --- a/src/core/components/operation-extension-row.jsx +++ b/src/core/components/operation-extension-row.jsx @@ -2,9 +2,11 @@ import React from "react" import PropTypes from "prop-types" export const OperationExtRow = ({ xKey, xVal }) => { + const xNormalizedValue = !xVal ? null : xVal.toJS ? xVal.toJS() : xVal + return ( { xKey } - { String(xVal) } + { JSON.stringify(xNormalizedValue) } ) } OperationExtRow.propTypes = {