Skip to content

Commit 95ee8ca

Browse files
shaswat-indianpionxzh
authored andcommitted
fix: missing key for self referential object
1 parent 925456a commit 95ee8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DataKeyPair.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export const DataKeyPair: FC<DataKeyPairProps> = (props) => {
361361
}
362362
<Box ref={highlightContainer} component='span'>
363363
{
364-
(isRoot
364+
(isRoot && depth === 0
365365
? rootName !== false
366366
? (quotesOnKeys ? <>&quot;{rootName}&quot;</> : <>{rootName}</>)
367367
: null

0 commit comments

Comments
 (0)