diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index 145c786..0e6d87a 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -28,7 +28,12 @@ const Studio = () => { axios .post(`/SASjsApi/stp/run`, { code }) .then((res: any) => { - setLog(res.data) + const data = + typeof res.data === 'string' + ? res.data + : `
${JSON.stringify(res.data, null, 4)}
` + + setLog(data) document?.getElementById('sas_log')?.scrollIntoView() }) .catch((err) => console.log(err)) @@ -78,7 +83,14 @@ const Studio = () => { Run Selected SAS Code - {log &&
} + {log && ( + <> +
+

Output

+
+
+ + )} ) }