X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6ab5c8019be196ba0e7ff401f2734f181f4f7ced..829d595bb4b9e7c0a8a1dd38995b4b5e197841f5:/src/components/code-snippet/code-snippet.tsx

diff --git a/src/components/code-snippet/code-snippet.tsx b/src/components/code-snippet/code-snippet.tsx
index f0a2b213..f156e3e8 100644
--- a/src/components/code-snippet/code-snippet.tsx
+++ b/src/components/code-snippet/code-snippet.tsx
@@ -33,10 +33,8 @@ export const CodeSnippet = withStyles(styles)(
         <Typography
         component="div"
         className={classNames(classes.root, className)}>
-            {
-                lines.map((line: string, index: number) => {
-                    return <Typography key={index} className={apiResponse ? classes.space : className} component="pre">{line}</Typography>;
-                })
-            }
+            <Typography className={apiResponse ? classes.space : className} component="pre">
+                {lines.join('\n')}
+            </Typography>
         </Typography>
-    );
\ No newline at end of file
+    );
