diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index 5ef8013..27c73db 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -50,25 +50,9 @@ const Studio = () => { .map((logLine: any) => logLine.line) .join('\n') - setLog(`

SAS Log

${parsedLog}
`) + setLog(parsedLog) - let weboutString: string - try { - weboutString = res.data._webout - .split('>>weboutBEGIN<<')[1] - .split('>>weboutEND<<')[0] - } catch (_) { - weboutString = res?.data?._webout ?? '' - } - - let webout: string - try { - webout = JSON.stringify(JSON.parse(weboutString), null, 4) - } catch (_) { - webout = weboutString - } - - setWebout(`
${webout}
`) + setWebout(`${res.data?._webout}`) setTab('2') // Scroll to bottom of log @@ -100,6 +84,7 @@ const Studio = () => { }, [location.search]) const classes = useStyles() + return ( <>
@@ -152,17 +137,15 @@ const Studio = () => { -
+
+

SAS Log

+
{log}
+
-
+
+
{webout}
+