Skip to content

Commit 25c546f

Browse files
Update renderContextRows to exclude 'componentSpecificMetadata' from rendering
1 parent 69f90b7 commit 25c546f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/dummy/client/app/components/RailsContext.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@ function renderContextRows(railsContext) {
77
return _.transform(
88
railsContext,
99
(accum, value, key) => {
10-
if (key !== 'serverSide') {
10+
if (key !== 'serverSide' && key !== 'componentSpecificMetadata') {
1111
const className = `js-${key}`;
12-
const stringifiedValue = typeof value === 'object' ? JSON.stringify(value) : value;
1312
accum.push(
1413
<tr key={className}>
1514
<td>
1615
<strong>{key}:&nbsp;</strong>
1716
</td>
18-
<td className={className}>{`${stringifiedValue}`}</td>
17+
<td className={className}>{`${value}`}</td>
1918
</tr>,
2019
);
2120
}

0 commit comments

Comments
 (0)