diff --git a/src/components/run/RunContent.tsx b/src/components/run/RunContent.tsx
index f6b42b26..3a2ea069 100644
--- a/src/components/run/RunContent.tsx
+++ b/src/components/run/RunContent.tsx
@@ -1255,7 +1255,11 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
{key}
- {value === undefined || value === '' ? '-' : String(value)}
+ {value === undefined || value === ''
+ ? '-'
+ : typeof value === 'object'
+ ? JSON.stringify(value)
+ : String(value)}
))
@@ -1294,7 +1298,9 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
m: 0
}}
>
- {crawlData[0][currentCrawlIndex].text}
+ {typeof crawlData[0][currentCrawlIndex].text === 'object'
+ ? JSON.stringify(crawlData[0][currentCrawlIndex].text, null, 2)
+ : crawlData[0][currentCrawlIndex].text}
@@ -1329,33 +1335,41 @@ export const RunContent = ({ row, currentLog, interpretationInProgress, logEndRe
m: 0
}}
>
- {crawlData[0][currentCrawlIndex].html}
+ {typeof crawlData[0][currentCrawlIndex].html === 'object'
+ ? JSON.stringify(crawlData[0][currentCrawlIndex].html, null, 2)
+ : crawlData[0][currentCrawlIndex].html}
)}
- {crawlData[0][currentCrawlIndex].links && crawlData[0][currentCrawlIndex].links.length > 0 && (
-
- }>
-
-
- Links ({crawlData[0][currentCrawlIndex].links.length})
-
-
-
-
-
- {crawlData[0][currentCrawlIndex].links.map((link: string, idx: number) => (
-
- {link}
+ {(() => {
+ const validLinks = crawlData[0][currentCrawlIndex].links?.filter((link: any) =>
+ typeof link === 'string' && link.trim() !== ''
+ ) || [];
+
+ return validLinks.length > 0 && (
+
+ }>
+
+
+ Links ({validLinks.length})
- ))}
-
-
-
- )}
+
+
+
+
+ {validLinks.map((link: string, idx: number) => (
+
+ {link}
+
+ ))}
+
+
+
+ );
+ })()}