diff --git a/frontend/src/components/ui/BrowsePage/FileViewer.tsx b/frontend/src/components/ui/BrowsePage/FileViewer.tsx index 9a476d10..a448319a 100644 --- a/frontend/src/components/ui/BrowsePage/FileViewer.tsx +++ b/frontend/src/components/ui/BrowsePage/FileViewer.tsx @@ -172,7 +172,8 @@ export default function FileViewer({ file }: FileViewerProps) { const parsed = JSON.parse(content); const formatter = new Formatter(); formatter.Options.IndentSpaces = 2; - displayContent = formatter.Serialize(parsed); + formatter.Options.MaxTableRowComplexity = 1; + displayContent = formatter.Serialize(parsed) ?? content; } catch { // If JSON parsing fails, show original content displayContent = content;