Skip to content

Commit

Permalink
fix: missing key for self referential object
Browse files Browse the repository at this point in the history
  • Loading branch information
shaswat-indian committed Feb 8, 2024
1 parent 8f164c1 commit 9544bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataKeyPair.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ export const DataKeyPair: FC<DataKeyPairProps> = (props) => {
}
<Box ref={highlightContainer} component='span'>
{
(isRoot
(isRoot && depth === 0
? rootName !== false
? (quotesOnKeys ? <>&quot;{rootName}&quot;</> : <>{rootName}</>)
: null
Expand Down

0 comments on commit 9544bd2

Please sign in to comment.