{attachment.contentType === kMissingContentType ? icons.warning() : icons.attachment()}
{attachment.path && {linkName || attachment.name}}
@@ -87,7 +88,7 @@ export const AttachmentLink: React.FunctionComponent<{
)}
} loadChildren={attachment.body ? () => {
return [{linkifyText(attachment.body!)}
];
- } : undefined} depth={0} style={{ lineHeight: '32px' }}>;
+ } : undefined} depth={depth ?? 0} style={{ lineHeight: '32px' }}>;
};
function downloadFileNameForAttachment(attachment: TestAttachment): string {
diff --git a/packages/html-reporter/src/testResultView.tsx b/packages/html-reporter/src/testResultView.tsx
index 8ee36d0cda..f3354064eb 100644
--- a/packages/html-reporter/src/testResultView.tsx
+++ b/packages/html-reporter/src/testResultView.tsx
@@ -98,7 +98,7 @@ export const TestResultView: React.FC<{
{result.errors.map((error, index) =>