Render non-primitive extension values more reliably

This commit is contained in:
Kyle Shockey
2017-11-23 11:58:46 -06:00
parent d3cc636dde
commit b42e2a7045

View File

@@ -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 (<tr>
<td>{ xKey }</td>
<td>{ String(xVal) }</td>
<td>{ JSON.stringify(xNormalizedValue) }</td>
</tr>)
}
OperationExtRow.propTypes = {