From f700561e1a8d06c18ca2bdbe4605d7ab34f7a761 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Wed, 30 Mar 2022 00:55:38 +0500 Subject: [PATCH] fix(web): updated STUDIO log and webout --- web/src/containers/Studio/index.tsx | 37 ++++++++--------------------- 1 file changed, 10 insertions(+), 27 deletions(-) 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}
+