Skip to content

Commit

Permalink
fix: history container data
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilal Meddah committed Nov 2, 2023
1 parent 66e7b10 commit 7211ae4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/shared/components/History/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ const HistoryComponent: React.FunctionComponent<{
<div className="changes" style={{ width: '100%', marginTop: '1em' }}>
{revision.hasChanges ? (
<Card>
{JSON.stringify(
revision.changes,
(_, value) => {
return typeof value === 'undefined' ? null : value;
},
2
)}
<pre style={{ width: '100%', overflow: 'scroll' }}>
{JSON.stringify(
revision.changes,
(_, value) => {
return typeof value === 'undefined' ? null : value;
},
2
)}
</pre>
</Card>
) : (
'No changes'
Expand Down

0 comments on commit 7211ae4

Please sign in to comment.