From 0a4b202428e14effc8014a6813cecf7761ce3715 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Sun, 20 Feb 2022 05:03:48 +0500 Subject: [PATCH] fix: hot fix for web component --- web/src/containers/Studio/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index 7174d2e..acb65a1 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -46,7 +46,11 @@ const Studio = () => { axios .post(`/SASjsApi/code/execute`, { code }) .then((res: any) => { - setLog(`

SAS Log

${res?.data?.log}
`) + const parsedLog = res?.data?.log + .map((logLine: any) => logLine.line) + .join('\n') + + setLog(`

SAS Log

${parsedLog}
`) let weboutString: string try {