We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c12e1 commit ff5dc32Copy full SHA for ff5dc32
src/client/components/display/ResponseEventsDisplay.jsx
@@ -21,9 +21,16 @@ const ResponseEventsDisplay = ({ response }) => {
21
}
22
else if (events.length > 1) {
23
if (events) {
24
+ let resEvents = '';
25
+ let eventJSON;
26
+ for (const event of events) {
27
+ eventJSON = JSON.stringify(event, null, 4);
28
+ resEvents = `${resEvents}
29
+${eventJSON}`
30
+ }
31
displayContents.push(
32
<div className="json-response" key="jsonresponsediv">
- <JSONPretty data={events} space="4" theme={{
33
+ <JSONPretty data={resEvents} space="4" theme={{
34
main: 'line-height:1.3; color: midnightblue; background:#RRGGBB; overflow:auto;',
35
key: 'color:#0089D0;', // bluetwo
36
string: 'color:#15B78F;',// greenone
0 commit comments