diff --git a/static/app/components/structuredEventData/recursiveStructuredData.tsx b/static/app/components/structuredEventData/recursiveStructuredData.tsx index 89ae29dcee78..10370aa4d990 100644 --- a/static/app/components/structuredEventData/recursiveStructuredData.tsx +++ b/static/app/components/structuredEventData/recursiveStructuredData.tsx @@ -37,6 +37,21 @@ function getTotalChildrenFromMeta(m: Record | undefined): number | und return typeof rootMeta?.len === 'number' ? rootMeta.len : undefined; } +function Wrapper({ + formattedObjectKey, + children, +}: { + children: React.ReactNode; + formattedObjectKey: React.ReactNode; +}) { + return ( + + {formattedObjectKey} + {children} + + ); +} + export function RecursiveStructuredData({ config, meta, @@ -57,20 +72,11 @@ export function RecursiveStructuredData({ ); - function Wrapper({children}: {children: React.ReactNode}) { - return ( - - {formattedObjectKey} - {children} - - ); - } - if (config?.isNull?.(value) || value === null) { const nullValue = config?.renderNull?.(value) ?? String(value); return ( - + + + + {'"'} + + +