Skip to content

Commit

Permalink
feat(web-scraping): pretty print tracked content if it is a valid JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
azasypkin committed Dec 6, 2023
1 parent 6213cc6 commit 9a6893d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function WebPageContentTrackerRevision({ revision }: WebPageContentTracke
if (parsedData && typeof parsedData === 'object') {
return (
<EuiCodeBlock fontSize={'l'} language={'json'} isCopyable>
{revision.data}
{JSON.stringify(parsedData, null, 2)}
</EuiCodeBlock>
);
}
Expand Down

0 comments on commit 9a6893d

Please sign in to comment.