1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-16 18:30:06 +00:00

fix: on clicking execute button open new tab for response

This commit is contained in:
2021-10-19 16:49:33 +00:00
parent cff5ba460d
commit 02f5371f57

View File

@@ -53,14 +53,9 @@ const Main = (props: any) => {
setFileContent(fileContentBeforeEdit) setFileContent(fileContentBeforeEdit)
setEditMode(false) setEditMode(false)
} else { } else {
setIsLoading(true) window.open(
axios `${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}`
.get(`${baseUrl}/SASjsExecutor/do?_program=${props.selectedFilePath}`) )
.then((res) => {
setIsLoading(false)
setEditMode(false)
console.log(res)
})
} }
} }