Render non-primitive extension values more reliably
This commit is contained in:
@@ -2,9 +2,11 @@ import React from "react"
|
|||||||
import PropTypes from "prop-types"
|
import PropTypes from "prop-types"
|
||||||
|
|
||||||
export const OperationExtRow = ({ xKey, xVal }) => {
|
export const OperationExtRow = ({ xKey, xVal }) => {
|
||||||
|
const xNormalizedValue = !xVal ? null : xVal.toJS ? xVal.toJS() : xVal
|
||||||
|
|
||||||
return (<tr>
|
return (<tr>
|
||||||
<td>{ xKey }</td>
|
<td>{ xKey }</td>
|
||||||
<td>{ String(xVal) }</td>
|
<td>{ JSON.stringify(xNormalizedValue) }</td>
|
||||||
</tr>)
|
</tr>)
|
||||||
}
|
}
|
||||||
OperationExtRow.propTypes = {
|
OperationExtRow.propTypes = {
|
||||||
|
|||||||
Reference in New Issue
Block a user