diff --git a/static/app/components/structuredEventData/recursiveStructuredData.tsx b/static/app/components/structuredEventData/recursiveStructuredData.tsx
index 89ae29dcee78..5d7b3dfc2485 100644
--- a/static/app/components/structuredEventData/recursiveStructuredData.tsx
+++ b/static/app/components/structuredEventData/recursiveStructuredData.tsx
@@ -57,20 +57,12 @@ 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 (
-
+
+ {formattedObjectKey}
-
+
);
}
@@ -87,7 +79,8 @@ export function RecursiveStructuredData({
const booleanValue = config?.renderBoolean?.(value) ?? String(value);
return (
-
+
+ {formattedObjectKey}
-
+
);
}
if (typeof value === 'number' || config?.isNumber?.(value)) {
return (
-
+
+ {formattedObjectKey}
-
+
);
}
@@ -120,7 +114,8 @@ export function RecursiveStructuredData({
const stringValue = config.renderString?.(value) ?? value;
return (
-
+
+ {formattedObjectKey}
{'"'}
-
+
);
}
if (looksLikeStrippedValue(value)) {
return (
-
+
+ {formattedObjectKey}
-
+
);
}
if (containsCRLF(value)) {
return (
-
+
+ {formattedObjectKey}
-
+
);
}
return (
-
+
+ {formattedObjectKey}
-
+
);
}