fix: the json parsing issue (#3739)

This commit is contained in:
Rajat Dabade 2023-10-13 11:35:50 +05:30 committed by GitHub
parent 3c63d66591
commit 9a433891f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ function TableView({
.map((key) => ({
key,
field: key,
value: removeEscapeCharacters(JSON.stringify(flattenLogData[key])),
value: JSON.stringify(flattenLogData[key]),
}));
const onTraceHandler = (record: DataType) => (): void => {
@ -182,7 +182,7 @@ function TableView({
return (
<CopyClipboardHOC textToCopy={textToCopy}>
<span style={{ color: orange[6] }}>{field}</span>
<span style={{ color: orange[6] }}>{removeEscapeCharacters(field)}</span>
</CopyClipboardHOC>
);
},