diff --git a/web/src/containers/Studio/index.tsx b/web/src/containers/Studio/index.tsx index b0326b5..cdd7d64 100644 --- a/web/src/containers/Studio/index.tsx +++ b/web/src/containers/Studio/index.tsx @@ -22,6 +22,7 @@ const Studio = () => { const location = useLocation() const [fileContent, setFileContent] = useState('') const [log, setLog] = useState('') + const [webout, setWebout] = useState('') const [tab, setTab] = React.useState('1') const handleTabChange = (_e: any, newValue: string) => { @@ -45,7 +46,17 @@ const Studio = () => { axios .post(`/SASjsApi/code/execute`, { code }) .then((res: any) => { - setLog(res.data) + setLog(`
${res?.data?.log}${JSON.stringify(webout, null, 4)}`)
setTab('2')
})
.catch((err) => console.log(err))
@@ -74,6 +85,7 @@ const Studio = () => {